Dear Forum,
I have a variable, named "cbo02". I want to calculate the mean of the observations of this variable that are contained in other variable, "t". The "cbo02" variable has 51534752 observations and the "t" variable 132 because "t" is a category and I wanna see which of the "cbo02" observations are contained in "t" and make the mean of it.
cbo02 t
717020 214305
715210 214325
717020 214310
717020 214405
773125 214430
784205 214425
715525 214415
715210 214410
715525 214505
717020 142105
717020 214925
513205 214915
717020 214910
etc...
Thanks.
Related Posts with Mean of observations contained in other variable
Tobit model with variable upper limits on Stata 13Hi all, I need to run a Tobit model with variable upper limits on Stata 13, and these upper limits …
Matching within strata in psmatch2Dear Statalists, I am working on treatment effects of foreign acquisition on firms' productivity, i…
Problem with exporting graph as postscriptIn some occasions I export graph as postscript and it is rotated to the right, and I have to edit. A…
Non-inferiority sample size calculation for proportionsNow this may be a massively stupid question however... I am trying to sort out a sample size calcul…
Hausman test after asclogitI need to run a hausman test after running the asclogit command, but i receive the following output …
Subscribe to:
Post Comments (Atom)
0 Response to Mean of observations contained in other variable
Post a Comment