margins | R Documentation |
S3 generic method for estimation of marginal effects
of an Ordered Forest objects of class orf
.
margins(forest, eval = NULL, inference = NULL, window = NULL, newdata = NULL)
forest |
estimated Ordered Forest object of class |
eval |
string, defining evaluation point for marginal effects. These can be one of "mean", "atmean", or "atmedian". (Default is "mean") |
inference |
logical, if TRUE inference on marginal effects will be conducted (default is inherited from the |
window |
numeric, share of standard deviation of X to be used for evaluation of the marginal effect (default is 0.1) |
newdata |
numeric matrix X containing the new observations for which the marginal effects should be estimated |
Gabriel Okasa
margins.orf
, summary.margins.orf
and print.margins.orf
## Ordered Forest require(orf) # load example data data(odata) # specify response and covariates Y <- as.numeric(odata[, 1]) X <- as.matrix(odata[, -1]) # estimate Ordered Forest orf_fit <- orf(X, Y) # estimate default marginal effects of the orf orf_margins <- margins(orf_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.