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
Estimation via SURE model(Seemingly Unrelated Equation Models) dependent variable delta_cash short term debt long term debt intercept working ca…
Testing statistical difference in coefficients after ppml estimation of gravity modelDear all, I am running a PPML regression for a trade gravity model using bilateral trade flows and …
Creating Variable - years since an eventHi there, I have a panel dataset and wish to do a regression analysis that involves a variable, "Ye…
Can not use -suest- for margins after probit or regressDear Statalists, I am trying to estimate for several models (using -probit- or -regress-) and hope …
re-generate time varying variable when collapsing from daily panel data to monthly panel dataDear Statalist Members, Hi, I'm trying to convert my daily panel data to monthly panel data using c…
Subscribe to:
Post Comments (Atom)
0 Response to Adding new lines in a given data set
Post a Comment