For some reasons, I need to add a new line above a given data set to show the summations of variables, not to creat a new variable using gen command. The original data contains n observations, so after this manipulation, the numbers of observations become n+1. I know, for the simplest method, using append commend can achieve this work. However, it seems awkward to make it using two data sets. Is there any better method? Thanks!
Related Posts with Adding new lines in a given data set
Joint model analysis using command stjmHello, I am using Stata 16 and want to run a joint model analysis to simultaneously model a longitu…
How to generate a new variable by calculation using two variables in the same idHi everyone, I have a dataset where v1 is the household id that gives out one id per household. I h…
Fixed effects with dummy instrumental variablesHi Statalist fellows. Please, could anyone help me? I am trying to run a FE model with iv. My IVs ar…
Standardising variables across waves in panel data analysis - how?Good morning all from a very gloomy Ireland where we have just reported our highest daily number of …
Creating a new variablehello! i would like to make two variables into one variable. The variables contain at which universi…
Subscribe to:
Post Comments (Atom)
0 Response to Adding new lines in a given data set
Post a Comment