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
Export output of levelsofHi Statalists! This will be my first posts, but I have been lurking around this forum for a while l…
Panel binary logistic regression, lagged independent and dependent variables, and age effectsDear Statalist users, I hope you are well. I am a PhD candidate at RMIT University, Melbourne. I a…
Shaded bar between values of X axis of a line graphHi, I am making a line graph where x axis is the year. I want to highlight/shade the periods betwee…
Using weights with xtheckman | xtheckman's fixed effects equivalentHi, I am using six waves of the PSID to estimate several determinants (particularly wealth) of the …
Creating dummy variables with category namesDear all, I have a dataset comprising thousands of individuals. For each individual I have, among ot…
Subscribe to:
Post Comments (Atom)
0 Response to Adding new lines in a given data set
Post a Comment