/* # Markdoc demo Use the automobile data set. Demonstrate the **jackknife** command. */ sysuse auto regress price mpg weight foreign jackknife coef=_b[mpg]: regress price mpg weight foreign /* Produce the same results using **postfile**. */ postfile coeffs b se using "coeffs.dta", replace forvalues i = 1/74 { quietly regress price mpg weight foreign if _n~=`i' local b _b[mpg] local se _se[mpg] post coeffs (`b') (`se') } postclose coeffs use "coeffs.dta", clear summarize b se ci se