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
Understanding heckmanI have a very basic question about the Heckman code. Assuming I have the code below, which variables…
psmatch2 with missing data using multiple imputation syntax?Hello All, I hope that all is well. I am starting to see more publications using MI and psmatch2. I …
Chi square test or ANOVA?Hi! I have two variables: doctors and their smoking status (smoking or don't smoking). I want to fin…
Generating new variables out of existing ones using a loopHello, I am working with a dataset which contains daily stock prices of over 300 stocks. Each stock…
Create table (by stacking different regression models)My goal is to create a table that looks like this: 1. Each entry (horizontal) represents a new mode…
Subscribe to:
Post Comments (Atom)
0 Response to Weighting with mixed command
Post a Comment