Rmean Stata. To load this data type sysuse auto clear the auto dataset has the following variables. Scalars e n number of observations e n over number of subpopulations e n stdize number of standard strata e n clust number of clusters e k eq number of equations in e b e df r sample degrees of freedom e rank rank of e v macros e cmd mean e cmdline command as typed.
In this video i will explain to you how to get descriptive statics in stata. 2egen extensions to generate icodes requests that the codes 0 1 2 etc be used in place of the left hand ends of the intervals. I want to add a third value that is the average price of all variables of that type so for example if the first observation had a type of 3 and a price of 10 then i d like to add a third value that is the average price of all observations with type 3.
Type and price the type value for each observation is a number between 1 and 10.
Descriptive statistics for this tutorial we are going to use the auto dataset that comes with stata. 2egen extensions to generate icodes requests that the codes 0 1 2 etc be used in place of the left hand ends of the intervals. Use gen double varname r mean instead of gen varname r mean. R mean stata knows when it sees r mean that we actually mean the value stored in that system variable.
