SAS Graphics Macros for PROC LCA | The Methodology Center

SAS Graphics Macros for PROC LCA

Downloads

Downloads

(Available free to members. Register.)

 

SAS Graphics Macros (3):

 

Users' Guide:

 

 

Users' Guide (v. 1.0)

 

How to run a SAS macro

4-minute video: How to run a SAS macro


Recommended Citations

SAS Graphics Macros for Latent Class Analysis (Version 1.0) [Software]. (2010). University Park: The Methodology Center, Penn State. Retrieved from http://methodology.psu.edu

Dziak, J. J., & Lanza, S. T. (2010). SAS graphics macros for latent class analysis users’ guide (Version 1.0). University Park: The Methodology Center, Penn State. Retrieved from http://methodology.psu.edu

 


 

IdentificationPlot

IdentificationPlot

 

Identification plot to judge how well-identified a latent class model is. This macro plots the distribution of fitted log-likelihoods resulting from multiple starting values.

 

The plot above (click graphic to view larger) illustrates a rather well-identified model; most of the starting values agree and give the best solution available, although some give suboptimal solutions.

 

PROC LCA DATA=data1 OUTSEEDS=ID;

NCLASS 4;

ITEMS childcog soccog childbeh singlerisk famdemo strsspt momdep histprob marrisk parrisk neirisk classrisk schlrisk;

CATEGORIES 2 2 2 2 2 2 2 2 2 2 2 2 2;

SEED 28214;

NSTARTS 20;

RUN;

%INCLUDE ‘C:\LcaGraphicsV1.sas’;

%IdentificationPlot(SeedsDataset=ID);

 


 

ItemResponsePlot

ItemResponsePlot

 

Item response plot to show the characteristics of different latent classes quickly by graphically summarizing the pattern of response probabilities for each latent class.

 

Each profile represents the response pattern of a latent class.

 

PROC LCA DATA=data1 OUTPARAM=param;

NCLASS 4;

ITEMS childcog soccog childbeh singlerisk famdemo strsspt momdep histprob marrisk parrisk neirisk classrisk schlrisk;

CATEGORIES 2 2 2 2 2 2 2 2 2 2 2 2 2;

SEED 28214;

RUN;

%INCLUDE ‘C:\LcaGraphicsV1.sas’;

%ItemResponsePlot(ParamDataset=param);

 


 

OddsRatioPlot

OddsRatioPlot

 

Odds ratio plot to show confidence intervals for the odds ratios associated with each covariate.

 

PROC LCA DATA=data1 OUTPARAM=param1 OUTSTDERR=stderr1;

NCLASS 4;

ITEMS childcog soccog childbeh singlerisk famdemo strsspt momdep histprob marrisk parrisk2 neirisk classrisk schlrisk;

CATEGORIES 2 2 2 2 2 2 2 2 2 2 2 2 2;

COVARIATES behav abuse;

SEED 28214;

RUN;

%INCLUDE ‘C:\LcaGraphicsV1.sas’;

%OddsRatioPlot(ParamDataset=param1,
StdErrDataset=stderr1);

 

 

Need Help?

For help with PROC LCA, consult our FAQ. If you have questions or comments about the macro, please email MChelpdesk@psu.edu.

 

If your organization does not permit download and installation of files, please contact us with a shipping address and we will provide a CD containing all downloadable files.

Follow Us