confint.palm | R Documentation |
Extracts confidence intervals for estimated and derived parameters from a model fitted using fit.ns, fit.void, or fit.twocamera, then bootstrapped using boot.palm.
## S3 method for class 'palm'
confint(object, parm = NULL, level = 0.95, method = "percentile", ...)
object |
A fitted model returned by fit.ns, bootstrapped using boot. |
parm |
A vector of parameter names, specifying which parameters are to be given confidence intervals. Defaults to all parameters. |
level |
The confidence level required. |
method |
A character string specifying the method used to calculate confidence intervals. Choices are "normal", for a normal approximation, and "percentile", for the percentile method. |
... |
Other parameters (for S3 generic compatibility). |
Bootstrap parameter estimates can be found in the boots
component of the model object, so alternative confidence interval
methods can be calculated by hand.
## Fitting model.
fit <- fit.ns(example.2D, lims = rbind(c(0, 1), c(0, 1)), R = 0.5)
## Carrying out bootstrap.
fit <- boot.palm(fit, N = 100)
## Calculating 95% confidence intervals.
confint(fit)
## Estimates are very imprecise---these data were only used as
## they can be fitted and bootstrapped quickly for example purposes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.