Learn R Programming

nlmeVPC (version 2.6)

findSIMQ: Find quantiles of the simulated data using Rcpp

Description

Find quantiles of the simulated data using Rcpp

Usage

findSIMQ(SIM,
        X,
        Xbin,
        probs,
        confLevel,
        approx)

Value

quantiles of SIM using xbin

Arguments

SIM

A matrix of simulated data with only Y values collected.

X

A numeric vector corresponding to Y

Xbin

Binning result from makeCOVbin function

probs

A numeric vector of probabilities

confLevel

Confidence level of the interval.

approx

Arguments to be passed to methods

Examples

Run this code
data(origdata)
data(simdata)
CUT = FindBestCut(origdata$TIME,8)$cutoffs
time_bin = makeCOVbin(origdata$TIME,K=8,cutoffs = CUT)
findSIMQ(simdata,origdata$TIME,Xbin=time_bin,probs=c(0.1,0.5,0.9),
confLevel=0.95,approx=FALSE)

Run the code above in your browser using DataLab