Hello everyone,
I am a new SAS user and I am using Medical Expenditure Panel Survey( MEPS) for my research. I have to use a Two-part model to study the impact of various independent variables on my dependent variable ( COST). Can someone please help me with the SAS SYNTAX for the two-part model.
I am unfamiliar with the term "two-part model". Can you describe?
These are zero-inflation models which are in the class of finite mixture models as can be fit using PROC FMM. While there is some question of the appropriateness of doing this with a continuous distribution like gamma, the following code is an example with single predictor, G, and will provide a model fit and predicted values.
proc fmm data=a plots=density(nbins=9);
class g;
model y = g / dist=gamma;
model + / dist=constant;
probmodel g;
output out=fmmpred pred;
run;
The Getting Started examples in the documentation often explain how to interpret the results.
I am also interested in building this kind of model. Could you please explain why there it might be inappropriate to build such models for continuous distributions in more detail? Thank you!
As @StatDave said it is a zero-inflation model generally suited to COUNT data ,not a continous data.
Check this brand-new session:
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.