quantile.outcomes: Calculate quantiles of model outcome variables

Description Usage Arguments Value

View source: R/util.R

Description

Calculate quantiles of model outcome variables

Usage

1
2
## S3 method for class 'outcomes'
quantile(data, model, probs, prob.names)

Arguments

data

data.frame containing predictor variables and outcome variables

model

associated model (its formula is used to determine which variables in data are predictors and which are outcomes)

probs

probabilities at which quantiles will be calculated (same as for 'quantile')

prob.names

format strings used to construct names of the new data columns. For example, if probs is 0.05 and prob.names is %s.lower, then the 5th percentile of each outcome variable var will be returned in var.lower.

Value

data frame of predictors and associated outcome quantiles.


pspline.inference documentation built on Jan. 19, 2021, 5:07 p.m.