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
xtreg: Panels are not nested within clustersHi, Stata forum, I am running firm level regression using one country panel data. For firm: xtset …
Quadratic term omitted when using # operatorHello all, I am running xtlogit command in Stata 14.2 and my main variable of interest includes a q…
HELP with Stata GraphicsDear Statalisty, I am really struggling with generating graphs in Stata. For the dataset below (whi…
1000 times simulation with random treatment for different y variables I want to randomly assign treatment and then simulate it for 1000 times for all my y variables. I w…
Problem with Merger commandHi everyone! I Have a problem with the command merge because I need to merge two-panel datasets that…
Subscribe to:
Post Comments (Atom)
0 Response to Weighting with mixed command
Post a Comment