Hello -
i'm having some trouble running a churdle model. I have observational data (4,800 observations) and i want to look at the association between minutes spent exercising and perceived safety of neighbourhood (categorical variable - 3 responses). There are a large number of 0's in the minutes of exercise hence why i'm trying a hurdle model. Other variables i want to consider in the model are ethnicity, family income and education but i'm not entirely sure where to put these!
i have tried a basic code so far which just seems to run for ages and ages and give no output:
churdle linear MVPA i.safety, select (i.safety) ll(0)
i also tried just running the first part of the model with truncreg MVPA i.safety, ll(0) - this came with an error message of 'cannot compute an improvement -- discontinuous region encountered'
Any help or advice would be much appreciated!
thanks
Related Posts with Help with hurdle model
Seed value across versionsI recently updated from STATA 13 to STATA 15. Some of the do-files I produced earlier using STATA 13…
Global macrosI was looking at some guide and saw them using the commands cd, global datadir, global dirresults. I…
Individual level data, Clustering Standard Error at city level, IV regression need syntax helpSay your data is at individual level, instrument and independent variable at city level, data on 2 y…
Stata code wighted census data for PCAHello all, I am new to the Stata Community and working on the 2016 Canadian census of population mi…
Generate a new variableDear all, I hope you can help me. I would like to generate a new variables based on values of anot…
Subscribe to:
Post Comments (Atom)
0 Response to Help with hurdle model
Post a Comment