Hello,
I am trying to weight observations when estimating growth models in Stata, and I am having trouble. The model isn’t converging and keeps saying “Iteration ##: log pseudolikelihood = -21377506 (backed up).”
As a simple version of the model I’m trying to run, say I want to run the below random slopes model:
mixed Trips Time || Zone: Time, covariance(unstructured)
I have annual data spanning 11 years for ~700 zones. I want to weight by the square root of dollars spent in a zone in a year (variable labeled ZoneWeight). I am not sure how I should enter this weight. I have played around with entering it as different types (fweight, pweight, etc.) before the two vertical lines, but I have issues with convergence. Can anyone please advise the appropriate way to weight by the dollars spent in a zone?
Thank you!
Related Posts with Weighting with mixed command
How to create a paired unit identifier?In the help file of did_imputation, I saw that when using triple diff: 22) Triple-diffs: When o…
Why does installing my package from GitHub ruin its help files?I am working on a Stata package that I am storing on GitHub ( https://github.com/NickCH-K/MLRtime ) …
Color palette installation on stata Hello everyone, These are some color palettes I can use for making beamer slides and after searchin…
Conditional conversion to string variableHello, I have a large dataset which I receive in 5 excel files. There is a variable, lets say X, thi…
Example of compositional effect in panel data?The definition of compositional effect is The term “compositional effects” is used here to refer to …
Subscribe to:
Post Comments (Atom)
0 Response to Weighting with mixed command
Post a Comment