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
Duplicating a long IDDear Statalisters, I am working on a panel data set to uniquely identify respondents across time. I…
-cem- and treated vs untreatedHello stata-users, When using -cem- matching approach, I get 3 variables cem_strata, cem_matched, an…
update value of localHi, Suppose, you have a local, which depends on a second local. However, when the first local is de…
Coefficient Matrix in Unconditional Quantile RegressionsI am running models with the ivqte command, which estimates unconditional quantile regressions, as d…
t(100) specificationI have received the following request from one of our clients: PDF codebooks Please use the t(100)…
Subscribe to:
Post Comments (Atom)
0 Response to Creating one more observation systematically
Post a Comment