BookmarkSubscribeRSS Feed
Polina_UH
Obsidian | Level 7

Dear all,

 

I am running confirmatory factor analysis to generate a latent variable 'mental health'. Some subjects have missing data on on some dimensions of mental health. I use full information maximum likelihood option, and I would like to generate a latent variable 'mental health' for all subjects even if they have missing data on some of dimensions. My code produces this variable only for those who have full data on all variables.

 

proc calis method=fiml data=all outstat=ostat;
factor
mental_health ===>x1 x2 x3 x4 x5 x6 x7;
pvar mental_health=1.;
run;

proc score data=all score=ostat out=scores1;
var x1 x2 x3 x4 x5 x6 x7;
run;

 

Could you please help me?

 

Many thanks in advance!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 783 views
  • 0 likes
  • 1 in conversation