get_predict {marginaleffects} | R Documentation |
Get predicted values from a model object (internal function)
get_predict(model, newdata, type, ...) ## Default S3 method: get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'polr' get_predict(model, newdata = insight::get_data(model), type = "probs", ...) ## S3 method for class 'glmmPQL' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'MCMCglmm' get_predict(model, newdata, type = "response", ndraws = 1000, ...) ## S3 method for class 'afex_aov' get_predict(model, newdata = NULL, ...) ## S3 method for class 'glimML' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'betareg' get_predict(model, newdata, ...) ## S3 method for class 'bife' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'biglm' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'multinom' get_predict(model, newdata = insight::get_data(model), type = "probs", ...) ## S3 method for class 'brmultinom' get_predict(model, newdata = insight::get_data(model), type = "probs", ...) ## S3 method for class 'brmsfit' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'crch' get_predict(model, newdata = NULL, type = "location", ...) ## S3 method for class 'fixest' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'gamlss' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'glmmTMB' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'inferences_simulation' get_predict(model, newdata, ...) ## S3 method for class 'merMod' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'lmerModLmerTest' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'lmerMod' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'mblogit' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'mhurdle' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'mlogit' get_predict(model, newdata, ...) ## S3 method for class 'clm' get_predict(model, newdata = insight::get_data(model), type = "prob", ...) ## S3 method for class 'rq' get_predict(model, newdata = insight::get_data(model), type = NULL, ...) ## S3 method for class 'rms' get_predict(model, newdata = insight::get_data(model), type = NULL, ...) ## S3 method for class 'orm' get_predict(model, newdata = insight::get_data(model), type = NULL, ...) ## S3 method for class 'lrm' get_predict(model, newdata = insight::get_data(model), type = NULL, ...) ## S3 method for class 'ols' get_predict(model, newdata = insight::get_data(model), type = NULL, ...) ## S3 method for class 'rlmerMod' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'stanreg' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'lm' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'glm' get_predict(model, newdata = insight::get_data(model), type = "response", ...) ## S3 method for class 'coxph' get_predict(model, newdata = insight::get_data(model), type = "lp", ...) ## S3 method for class 'tobit1' get_predict(model, newdata = insight::get_data(model), type = "response", ...)
model |
Model object |
newdata |
Grid of predictor values at which we evaluate the slopes.
|
type |
string indicates the type (scale) of the predictions used to
compute contrasts or slopes. This can differ based on the model
type, but will typically be a string such as: "response", "link", "probs",
or "zero". When an unsupported string is entered, the model-specific list of
acceptable values is returned in an error message. When |
... |
Additional arguments are passed to the |
A data.frame of predicted values with a number of rows equal to the
number of rows in newdata
and columns "rowid" and "estimate". A "group"
column is added for multivariate models or models with categorical outcomes.