Find quantiles of the simulated data using Rcpp
findSIMQ(SIM, X, Xbin, probs, confLevel, approx)
SIM
: A matrix of simulated data with only Y values collected.X
: A numeric vector corresponding to YXbin
: Binning result from makeCOVbin functionprobs
: A numeric vector of probabilitiesconfLevel
: Confidence level of the interval.approx
: Arguments to be passed to methodsquantiles of SIM using xbin
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)
Useful links