Programming the statistical procedures from SAS

Question about latent class analysis(PROC LCA)

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

Question about latent class analysis(PROC LCA)

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

 


Accepted Solutions
Solution
‎08-22-2016 02:52 PM
SAS Super FREQ
Posts: 3,547

Re: Question about latent class analysis(PROC LCA)

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


All Replies
Solution
‎08-22-2016 02:52 PM
SAS Super FREQ
Posts: 3,547

Re: Question about latent class analysis(PROC LCA)

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.

Occasional Contributor
Posts: 12

Re: Question about latent class analysis(PROC LCA)

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;

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 848 views
  • 1 like
  • 2 in conversation