predictdf.polr: Prediction data frame for polr

Description Usage Arguments Details

View source: R/xgx_stat_smooth.R

Description

Get predictions with standard errors into data frame for use with geom_smooth

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S3 method for class 'polr'
predictdf(
  model,
  xseq,
  se,
  level,
  data,
  method,
  formula,
  method.args,
  weight,
  n_boot = 200
)

Arguments

model

object returned from polr

xseq

sequence of x values for which to compute the smooth

se

if TRUE then confidence intervals are returned

level

confidence level for confidence intervals

data

data to fit

method

only works for method MASS::polr

formula

formula to fit

method.args

arguments to pass to method

weight

weights to use for method

n_boot

number of bootstraps to perform for confidence interval calculation, default is 200

Details

predictdf.polr is used by xgx_geom_smooth when method = "polr" to calculate confidence intervals via bootstraps.


xgxr documentation built on April 23, 2021, 1:07 a.m.