findSIMQuantile: Find quantiles of the simulated data.

View source: R/Misc.R

findSIMQuantileR Documentation

Find quantiles of the simulated data.

Description

Find quantiles of the simulated data.

Usage

findSIMQuantile(sim_data,
               X,
               X_bin,
               probs = c(0.1,0.5,0.9),
               conf.level = 0.95,
               approx = FALSE, ...)

Arguments

sim_data

A matrix of simulated data with only Y values collected.

X

A numeric vector corresponding to Y.

X_bin

Binning result from makeCOVbin function.

probs

A numeric vector of probabilities.

conf.level

Confidence level of the interval.

approx

Arguments to be passed to methods

...

Arguments to be passed to methods

Value

quantiles of sim_data using X_bin

Examples

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

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