Learn R Programming

simsem (version 0.2-8)

getCondQtile: Get a quantile of a variable given values of predictors

Description

Find a quantile of a variable. If the predictors are specified, the result will provide the conditional quantile given specified value of predictors. The quantreg package is used to find conditional quantile.

Usage

getCondQtile(y, x=NULL, xval=NULL, df = 0, qtile = 0.5)

Arguments

y
The variable that users wish to find a quantile from
x
The predictors variables. If NULL, the unconditional quantile of the y is provided.
xval
The vector of predictors' values that users wish to find the conditional quantile from. If "all" is specified, the function will provide the conditional quantile of every value in x.
df
The degree of freedom used in spline method in predicting the fit indices by the predictors. If df is 0, the spline method will not be applied.
qtile
The quantile rank.

Value

  • A (conditional) quantile value

See Also

  • getCutofffor finding fit indices cutoffs using conditional quantiles

Examples

Run this code
# No example

Run the code above in your browser using DataLab