I am using sfpanel() command and I need to set initial values for the variables before running the regression.
In order to set the initial values, I am using the ‘svfrontier’ argument of sfpanel().
Since I’m including user fixed effects (and there are ~2000 Users in the dataset), I need to specify around 2000 starting values. This becomes a very long expression!
Command: Sfpanel y dummy2 dummy3 i.userid, model(tfe) dist (tnormal) svfrontier( 1 2 3 … 2000 )
The numbers inside the bracket (i.e. 1 2 3…) are the starting values here (say).
I’m getting the following Error:
expression too long
r(130);
Things I've tried: 1.) I have tried this for a smaller dataset (that had 15 users) and this worked perfectly fine but for the complete dataset (~2000 users), we've a longer expression and this becomes a problem. 2.) I tried the delimit command in the do file as well:
#delimit ; sfpanel y dummy2 dummy3 i.userid, model(tfe) dist(tnormal) svfrontier(1 2 3 ... 2000); #delimit cr This didn't work for the complete dataset. (although it did work for the smaller dataset, so shouldn't be a syntax error)
Any help will be greatly appreciated! Thanks, Aishvarya
Related Posts with expression too long r(130) while specifying starting values
Appending tables using collectI'm reasonably sure I'm missing something very simple with this question. Basically, I have two tabl…
STATA does NOT allow me to stratify for a variable in a frailty model. How to fix?Dear all, I have a question regarding a survival analysis. I thank you all in advance. I have to co…
Store estimates of a loop using a reghdfe regressionHello everyone, I am trying to store estimates of a (reghdfe) regression in a loop. The regressions…
Generating variables based conditionally with log of zero-value variableHi experts, Today I try to find a way to generate a variable called logTAT1. Normally, logTAT1= ln(…
Request for Help in Measurement of MES and SRISKHi! I am new to this forum. I need help with the Measurement of Marginal Expected Shortfall (MES) an…
Subscribe to:
Post Comments (Atom)
0 Response to expression too long r(130) while specifying starting values
Post a Comment