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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 485 views
  • 0 likes
  • 1 in conversation