Dear Statalist,
I want to use a Finite Mixture Model (4 Gaussian's) and a Quantile Regression to compare the distributional fit of those 2 models on a dataset.
Therefore I want to compare computed densities for exemplary observations of the dataset by
(1) graphing them (like kdensity but not for the whole dataset, only exemplary observations) and
(2) by estimating quantiles
My question is: How can I compute those densities for exemplary observations.
For QR I would proceed as follows:
1. run QR for q(1) given the whole dataset
2. predict xb to get the linear prediction for the first quantile
3. repeat for quantile 2 to 99 to get the linear prediction for quantiles 2 to 99
4. plot those values for an exemplary observation
For FMM I don't know how to proceed. My suggestion would be
1. run FMM with 4 Gaussian's given the whole dataset to obtain latent class probabilities and estimates conditional on the latent class
2. due to the underlying assumptions of normal distributions and the estimated latent class probabilites for a given observation, it should somehow be possible to estimate values for the quantiles 1 to 99 for an exemplary observation
3. plot those values for the same exemplary observation as in 4. above.
Any help or suggestions are appreciated a lot. If you have any further question which could help in answering my question, don't hesistate to ask.
Kind regards,
Steffen Plützke
Related Posts with Computation of densities for exemplary observations with Finite Mixture Model (FMM) and Quantil Regression (QR)
Need help in generating a categorical variableHello, I am having trouble generating a categorical variable by the name of Age which is supposed t…
Heckman Error in First stageHi I run the Heckman two step selection model by using following stata code. I am using stata 15.1 v…
What is the best method / code of calculating respondents' ages?I have two variable: Q26 (month) and Q27 (year). Q26: What month were you born? The answer is 12 mon…
Loop, one-tailed p value, two-tailed p valueHi I am running regressions by industry and year groups where the number of firms in the industry an…
Graphically show the interaction effect, panel dataHi everyone, I am estimating a moderating effect with a random effects regression model and it give…
Subscribe to:
Post Comments (Atom)
0 Response to Computation of densities for exemplary observations with Finite Mixture Model (FMM) and Quantil Regression (QR)
Post a Comment