findQuantile: Find quantiles of the original data.

View source: R/Misc.R

findQuantileR Documentation

Find quantiles of the original data.

Description

Find quantiles of the original data.

Usage

findQuantile(Y,
            X,
            X_bin,
            probs=c(0.1,0.5,0.9),...)

Arguments

Y

A numeric vector whose sample quantiles are wanted.

X

A numeric vector corresponding to Y.

X_bin

Binning result from makeCOVbin function.

probs

A numeric vector of probabilities.

...

Arguments to be passed to methods.

Value

quantiles of Y using X_bin

Examples

data(origdata)
CUT = FindBestCut(origdata$TIME,8)$cutoffs
time_bin = makeCOVbin(origdata$TIME,K=8,cutoffs = CUT)
findQuantile(origdata$DV,origdata$TIME,X_bin=time_bin)

nlmeVPC documentation built on Dec. 28, 2022, 2:49 a.m.