Learn R Programming

palm (version 1.1.5)

confint.palm: Extracts Neyman-Scott point process parameter confidence intervals.

Description

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.

Usage

# S3 method for palm
confint(object, parm = NULL, level = 0.95, method = "percentile", ...)

Arguments

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).

Details

Bootstrap parameter estimates can be found in the boots component of the model object, so alternative confidence interval methods can be calculated by hand.

Examples

Run this code
## 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.

Run the code above in your browser using DataLab