quantile_cpmgee: Calculate quantiles conditional on covariates

View source: R/conditional_functions.R

quantile_cpmgeeR Documentation

Calculate quantiles conditional on covariates

Description

This functions calculates the quantiles conditional on covariates based on the fitted model and new data.

Usage

quantile_cpmgee(mod, cont_y, new.data, probs = 0.5, se = TRUE)

Arguments

mod

the model

cont_y

the continuous response data

new.data

the new data

probs

a numeric vector of pth quantiles

se

if confidence intervals needed (default = TRUE)

Value

A list containing the following components:

est

a vector of estimated condtional quantiles

lb

a vector of estimated lower bounds of 95% confidence intervals

ub

a vector of estimated upper bounds of 95% confidence intervals


YuqiTian35/cpmgee documentation built on Aug. 6, 2023, 4:30 a.m.