Hello, everyone!
Suppose there are v1, v2, v3, t1, t2 five variables, now I want to calculate mean of v1, v2, v3 grouped by t1 and t2, then store the means in a new file, how can I achieve it?
Thanks a lot!
Related Posts with Store mean of many variables in a new file
How to create a balance plot after weighting manually?I created weights for a difference-in-difference model and want to compare the correlations of the c…
How to rename variable name with the variable label in a loopI created new variables based on the levels of a categorical variable using the -tab, gen- command a…
Why non missing conflict?Hello, I'm saving a database in CSV format, then merging it again in. It generates a nonmissing conf…
Dealing with duplicate time stamps in auction dataHello! I am working with a longitudinal panel dataset collected from an online auction. For each ob…
How to do a Propensity Score Matching and a Parallel Trend Test for a Staggered Difference in Difference DesignDear all, I am still learning Stata, currently using Stata 14.2. Thank you very much in advance fo…
Subscribe to:
Post Comments (Atom)
0 Response to Store mean of many variables in a new file
Post a Comment