Hello all!
I am trying to run a mixlogit with a specific restriction on the Standard Deviation of one of my variales, code looks like:
constraint define 1 [SD]Xc = 0
mixlogit Y X1 … Price, rand(Price) constraint(1) ln(1)
And from here I get the error message "When constrainsts are specified it is compilsory to supply starting values using the from option"
From this I understand that I have to basically provide starting values for the betas ... but I would need some help as to how to do that. Do I run a previous model, save the results and somehow command them into the from option? I have seen that you specify values from the matrix of covariates, but I am a bit at loss as to how to do that.
I appreciate the help,
Michael
Related Posts with from option - mixlogit command
Estimating an hourly ATE in the DID frameworkDear Statalist, I am trying to estimate the average treatment effect for each hour of the day(0-23…
Marginal effects command doesn't work. Don't understand error: factor variables may not contain noninteger valuesHi! I'm doing a binary logistic regression in Stata 15.0, but my supervisor told me you cannot inte…
How to count number of IDs with more than one conditionAn extract of my data is displayed below. In the data, 0=Condition is absent, and 1=Condition is pre…
Average of Previous (x) ObservationsGood morning, At the moment I need to calculate the average of the 3 previous nmfp for each horse. …
How to count number of countries when you have individual-level data of many countriesHi, I need to fill in my descriptive statistic analysis sample, and thus I need to count the number…
Subscribe to:
Post Comments (Atom)
0 Response to from option - mixlogit command
Post a Comment