Estimate Margins
estimate_margins.RdEstimate Margins
Arguments
- dta
data.table::data.table Data to calculate the margins.
- margins_controls
list A list with arguments to be passed to
kde1d::kde1d(). Currently, there can bemultnumeric vector of length one or d; all bandwidths for marginal kernel density estimation are multiplied withmult. Defaults tolog(1 + d)wheredis the number of climate variables.xminnumeric vector of length d; seekde1d::kde1d().xmaxnumeric vector of length d; seekde1d::kde1d().bwnumeric vector of length d; seekde1d::kde1d().degnumeric vector of length one or d;kde1d::kde1d().typecharacter vector of length one or d; must be one of c, cont, continuous for continuous variables, one of d, disc, discrete for discrete integer variables, or one of zi, zinfl, zero-inflated for zero-inflated variables.
- kde
list kernel density estimations.