prob: Set-up for Drawing Values

View source: R/votepath.r

probR Documentation

Set-up for Drawing Values

Description

The prob function sets up values that will be past draw_vals. For linear models and gaussian GLMs, these are simply predicted values. For non-linear models, these are inverse-link transformed linear predictor values (e.g., predicted probabilities).

Usage

prob(obj, b, data, ...)

Arguments

obj

A model object - currently supported models are lm, glm, polr, multinom, svyglm, svyolr and svymultinom.

b

A list of model coefficients generated by draw_coefs().

data

A data frame that will be used to generate predictions.

...

Other arguments to be passed down, currently none implemented.


davidaarmstrong/votepath documentation built on May 2, 2024, 4:13 a.m.