I just want to create one more observation. I did this
sysuse auto, clear
count
local count=r(N)
local countplusone=r(N)+1
replace price = 1 in `countplusone'
But I get this error
observation numbers out of range
But when I manually edit the data, then the stata shows me exactly that code that I tried. Then why can't I do the same thing by typing in this code? Is there a way to get around this?
Related Posts with Creating one more observation systematically
How to measure time dependent reproductive number (Rt) in stataHello everyone. I'm trying to make epidemiological curve of COVID 19 in my region. I wonder if STATA…
Bootstrapped SEs for quantile regressionHi, I have a standard difference-in-differences setup where a reform is introduced in one region in…
Replace "statsby" by "runby" to save timeHi, I am currently running regressions by group and saving coefficients using "statsby". It turns o…
Mixlogit with 'corr' option: convergence issueDear all, I am encountering a convergence problem with the 'mixlogit' command (written by Arne Risa…
Help remarking duplicates in household surveyHello everyone, I have a simple question, which I have failed to figure out. How can I remark split …
Subscribe to:
Post Comments (Atom)
0 Response to Creating one more observation systematically
Post a Comment