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
KINKYREG: new Stata command for instrument-free inference in linear regression models with endogenous regressorsI just released a brand-new Stata package called kinkyreg, which I developed jointly with Jan Kiviet…
Wage distribution percentile differencesHi, everyone!
Right now I have to do research about how the minimum wage affects wage distribution.…
Nijman and Verbeek (1992) test to formally test for attrition biasDear all,
I desperately need help on the step by step process of using Nijman and Verbeek (1992) te…
Stata commandDear all
First of all, thank you so much to you (statistical professionals) for your help and advice…
Multiple hypothesis testing command updatedFor those interested in multiple hypothesis testing, a new version of wyoung is now available on SSC…
Subscribe to:
Post Comments (Atom)
0 Response to Creating one more observation systematically
Post a Comment