Hi ,
I have a huge dataset with 12000 observations with sample ID running in sequence (1-12000). I am interested to calculate mean of (Cholesterol) for every 100 observations. How do I write a code for that?
Is it:
egen avechol = mean(Cholesterol), by ()
I don't know what to write in the by() syntax?
Please help!
Many thanks.
Related Posts with Calculating Mean by every 100 observations?
frames questionRelational databases can hold data more efficiently than flat files in the sense that when you merge…
Statistical Non-Significance of results and their interpretion by using confidence intervals and standard errorsDear Stata Members I have done a Difference in Difference model and I got the following output Cod…
SSC RIF updateDear all Thanks to Prof Baum, an update for RIF is up! This update comes with 1 addition: -bsrifhdre…
I can't simulate a bootstrap program with multiple resultsI am trying to calculate bootstrap standard errors for many regressions. I am applying Two-Sample In…
Goodness of fit -xtreg, re vce(cluster var)- and -xtlogit-Hello everyone, I am running a random effects panel regression with -xtreg, re- and clustered stand…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating Mean by every 100 observations?
Post a Comment