Hello everyone,
My dataset contains:
- mcruns (50 Monte Carlo simulations)
- lgacode (50001 to 50136)
- species_code (1 to 5)
- abund (species abundance)
-year (1972 to 1981)
I need to generate a new dataset containing lgacodes species_code mean_abundance year1_lga
For each lgacode, species_code and year want to have the mean abundance instead of 50 (simulations). Sorry I am new to STATA and any help would be much appreciated.
Array
Related Posts with Calculate the mean of simulations by groups with panel data
Question about exogeneityI ran the following equations via fixed effects (one with a lead for union status, and one without a…
Panel regression with time dummiesHi, I've just done a fixed effect and random effect regression with time dummies for both, and the …
export extra statistics from ado file (with different formats)Dear All, A new/useful -xthenreg- command (forthcoming in Stata Journal) can be downloaded here (or …
Error: data not sorted, even though I have sorted themHello, I am working on a project where I want to study how inheritances affect labour supply of rec…
IV when there is an interaction term including the endogenous variableHi, I have a regression of 'reg Y X1 X2 X1 X2 controls' and X1 is endogenous. When I use ivreg I d…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate the mean of simulations by groups with panel data
Post a Comment