Compute the percentage of points under each centile line
Source:R/gamlss-centiles.R
check_sample_centiles.Rd
Compute the percentage of points under each centile line
Usage
check_sample_centiles(
data,
model,
var_x,
var_y,
centiles = c(5, 10, 25, 50, 75, 90, 95)
)
Arguments
- data
a dataset used to fit a model. If the dataframe is grouped with
dplyr::group_by()
, sample centiles are computed for each group.- model
a gamlss model prepared by
mem_gamlss()
- var_x, var_y
bare column names of the predictor and outcome variables
- centiles
centiles to use for prediction. Defaults to
c(5, 10, 25, 50, 75, 90, 95)
.