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
Why won't my test for fixed vs random effects models work? The Mundlak approach.I have panel data on women measured across 3 waves. I am unsure as to whether to model them with fix…
Help choosing the right regressorsI have multiple regression model of around 7 variables with a really low R square( around 0.1). How …
How to change string data to numeric data in StataDear Statalist community, I'm currently trying to merge two different datasets. I receive the follo…
How to build a counterfactural group for each individual?Hi Experts: I have a panel data contains information of cancer indicator and wage. I want to know "…
Adjustment for clustered predictors in multinomial logistic regression with multiple imputationsI want to test the association between childhood behaviors at age six and trajectories of welfare us…
Subscribe to:
Post Comments (Atom)
0 Response to Creating one more observation systematically
Post a Comment