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
mtitles for titles and sub-titles within estab commandHi, I want to export a summary statistics table into Latex that is conditional on more than one var…
Regression outputHi all, I'm running a series of regression with industry and year fixed effect My dependent variabl…
Structural Break VARHello, How do I test for structural break in Var model? Is the Gregory-Hansen test the appropriate …
Start counter counting missing values after each non-missing valueHi, I would like to start counter counting missing values after each non-missing value by group (un…
Matrix raised to a certain powerHi all, I am new to mata and have a question related to matrix manipulation in MATA. I have: A = (…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of observations contained in other variable
Post a Comment