*! version 30aug2024

ddml describe utility - Basic example with pystacked

Load the data, define global macros, set the seed and initialize the model.
Use 2-fold cross-fitting with two repetitions (resamples)
Use pystacked's default learners as the supervised learners.

. use https://github.com/aahrens1/ddml/raw/master/data/sipp1991.dta, clear

. global Y net_tfa

. global D e401

. global X tw age inc fsize educ db marr twoearn pira hown

. set seed 42

. ddml init partial, kfolds(2) reps(2)

. ddml E[Y|X]: pystacked $Y $X

. ddml E[D|X]: pystacked $D $X

. ddml crossfit

. ddml estimate

Default of ddml describe is to report a brief summary.

. ddml describe

Options: report details of the total and cross-fit samples,
learners (including the estimation strings),
cross-fit results,
and estimation results.

. ddml describe, sample

. ddml describe, learners

. ddml describe, crossfit

. ddml describe, estimates

The all option is equivalent to specifying all 4 options.

. ddml describe, all

. ddml describe, sample learners crossfit estimates