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
the creation of the matrix of each neighboring countryHello to all For my panel data set whose unit of analysis is country, I would like to identify the n…
Using mi data in two-stage IPD-MAHi all, Does anyone have any experience using multiple imputation with a two-stage IPD-MA model? I…
How to import extra-large excel file into STATA?I want to open an EXCEL file with more than 40GM in STATA, and I used the following command "import …
Commandes pour mesurer la vulnérabilité à la pauvretéJe travaille actuellement sur le thème: vulnérabilité des ménages à pauvreté. Je dispose des données…
Generating a new variable that is the variable with the max value from rowmaxHello and thank you! I am trying to generate a new variable that is the variable with the max value …
Subscribe to:
Post Comments (Atom)
0 Response to Creating one more observation systematically
Post a Comment