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
two-way bar graph adjustmentsFor the graph below, I would like to move the 1 on the y-axis down to where 0 is. How do I do that? …
Help merging two datasetsDear all, I am using Stata 16, on mac. Here are snapshots of my two datasets. I have collected data …
Plot logistic regression with moderator and two lines for one binary variableHi everyone, I hope you can help me with that. I have the following variables: gender, binary count…
Randomness in optimizeDear All, a few years ago (in 2011) a message was posted by Matthew J. Baker to the older StataList…
Model selection with age-standardization of survey dataDear Statalisters, Please forgive my ignorance, but is there a way to determine the best model e.g.…
Subscribe to:
Post Comments (Atom)
0 Response to Adding new lines in a given data set
Post a Comment