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
Invalid name error when using count and putexcelHi there, I am running Stata/SE 16.0 and my data looks like this: Code: * Example generated by -d…
Problem regarding the creation of an independent variableHi all, For my Master thesis, I used Qualtrics for an online experiment and within this experiment …
Changing titles on side-by-side bar graphsHi All, I'm trying to create a side-by-side bar graph, as per below (note dummy variable labels inc…
difference in difference with cem matching and clusteringHi Statalist users I have a panel data with project panel observations. However, each project has o…
Using -expand- to duplicate multiple rowsI have data that look like the following: Code: * Example generated by -dataex-. To install: ssc i…
Subscribe to:
Post Comments (Atom)
0 Response to Weighting with mixed command
Post a Comment