Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predictdf.polr

Prediction data frame for polr


Description

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

Usage

## 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

Exploratory Graphics for Pharmacometrics

v1.1.1
MIT + file LICENSE
Authors
Andrew Stein [aut, cre], Alison Margolskee [aut], Fariba Khanshan [aut], Konstantin Krismer [aut] (<https://orcid.org/0000-0001-8994-3416>), Matthew Fidler [ctb] (<https://orcid.org/0000-0001-8538-6691>), Novartis Pharma AG [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.