Hello everyone,
I would like to create a descriptive statistics table with general statistics like count, SD; min, max, etc. and output it using esttab or outtreg or any other outputting format. In addition to these statistics, I would like to add a new column that capture the percentage of missing observations for each variable. Is there a way to do this?
The following is my current code:
estpost tabstat price mpg weight length foreign, c(stat) stat(mean sd min max n)
# delimit;
esttab using "${outtex}",
replace cells("mean sd min max count") nomtitle noobs
title("Basic Summary Statistics)
collabels("Mean" "SD" "Min" "Max" "N")
addnote("Source: Stata's Automobile dataset.")
coeflabels(price "Price" mpg "Miles per Gallon" weight "Weight (Lbs)" length "Length (Ft)" foreign "1 if Produced Abroad");
Many thanks
I would like to create a descriptive statistics table with general statistics like count, SD; min, max, etc. and output it using esttab or outtreg or any other outputting format. In addition to these statistics, I would like to add a new column that capture the percentage of missing observations for each variable. Is there a way to do this?
The following is my current code:
estpost tabstat price mpg weight length foreign, c(stat) stat(mean sd min max n)
# delimit;
esttab using "${outtex}",
replace cells("mean sd min max count") nomtitle noobs
title("Basic Summary Statistics)
collabels("Mean" "SD" "Min" "Max" "N")
addnote("Source: Stata's Automobile dataset.")
coeflabels(price "Price" mpg "Miles per Gallon" weight "Weight (Lbs)" length "Length (Ft)" foreign "1 if Produced Abroad");
Many thanks
Comment