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
Merging two datasets with specific dates of start and end of period within a yearI am running on panel project where I have to merge and match two dataset . My first dataset is a se…
grc1leg alternatives.Dear All, I am using Stata MP on my universities Linux based super computer and it does not have us…
Why doesn't clustering change anything?Hi all, I have panel data xtset across 3 waves of children's weight and parents employment status, …
Creating variables out of duplicatesHi, as this is my first post, I hope I meet all the criteria. I am using a large panel data set on a…
Marginal effects on predicted marginal probability after mvprobitHi! I ran a multivariate probit regression on 3 binary dependent variables using Capellari and Jenki…
Subscribe to:
Post Comments (Atom)
0 Response to Creating one more observation systematically
Post a Comment