BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
lionking19063
Fluorite | Level 6

Hello, 

I am new user of PROC LCA (latent class analysis). I wonder if PROC LCA is applicable to categorical independent variables only. Can it be used in continuous variables as well? If yes, what statement in PROC LCA can be used for continuous variables? Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

You can find the documentation of PROC LCA at

https://methodology.psu.edu/downloads/proclcalta

 

The documentation describes the mathematical model on p. 5.  It says " a covariate denoted X which may be either continuous or dichotomous." On p. 18 it says that the COVARIATE statment supports continuous variables.  See the doc if you have questions about other statements.

View solution in original post

2 REPLIES 2
Rick_SAS
SAS Super FREQ

You can find the documentation of PROC LCA at

https://methodology.psu.edu/downloads/proclcalta

 

The documentation describes the mathematical model on p. 5.  It says " a covariate denoted X which may be either continuous or dichotomous." On p. 18 it says that the COVARIATE statment supports continuous variables.  See the doc if you have questions about other statements.

lionking19063
Fluorite | Level 6

Supposed there is a dataset called test with two categorical (X1, X2) variables and 1 continuous variable (x3). There are only two levels in both categorical variables. I would like to run LCA with only two clusters on the data and wonder if the syntax makes sense or not. Thank you in advanced.

 

PROC LCA DATA=test;

NCLASS 2;

ITEMS x1 x2;

CATEGORIES 2 2;

COVARIATES x3;

SEED 100000;

RHO PRIOR=1;

RUN;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 3375 views
  • 1 like
  • 2 in conversation