calcBRAIDconfint {braidrm} | R Documentation |
Produces confidence intervals for any general calculable property of a BRAID surface, based on a given BRAID surface fit (with bootstrapped coefficients).
calcBRAIDconfint(bfit, parfunc, civals = NULL)
bfit |
A BRAID surface fit of class |
parfunc |
A function to calculate a property of a response surface. |
civals |
Values specifying the lower and upper bound of the confidence interval(s) to be calculated. If |
If parfunc
produces a single value as output, a vector of three values: the second value is the estimate of the best
BRAID surface fit, while the first and third values represent the lower and upper bounds of the calculated confidence interval.
If parfunc
produces a vector as output, an array of width three: the second column is the estimate of the best BRAID
surface fit, while the first and third columns represent the lower and upper bounds of the calculated confidence intervals.
Nathaniel R. Twarog
data(es8olatmz)
brd <- braidrm(act~conc1+conc2,es8olatmz,fixed=c(NA,NA,NA,NA,1,NA,NA,-4,-4,-4))
potci <- calcBRAIDconfint(brd,function(parv) invertBRAIDrsm(-1,DA=10^-7,parv=parv))
## Not run:
pconc <- exp(seq(log(10^-6),log(10^-3),length=100))
effci <- calcBRAIDconfint(brd,function(parv) evalBRAIDrsm(10^-7,pconc,parv))
## End(Not run)