Learn R Programming

lmf (version 1.2)

plot.boot.lmf: Plotting function for class "boot.lmf"

Description

Plots density plots for bootstrap replicates of parameters from objects of class "lmf".

Usage

## S3 method for class 'boot.lmf' "plot"(x, what = c("all"), ...)

Arguments

x
an object of class "boot.lmf".
what
what parameters is to be plotted. Options are "projection", "alpha" and "all".
...
additional arguments to be passed to methods, such as graphical parameters (see par).

Details

Density of parameters is calculated using the function density.

See Also

boot.lmf, density, plot.default

Examples

Run this code
#Data set from Engen et al. 2012
data(sparrowdata)
#Fit model
lmf.1 <- lmf(formula = cbind(recruits, survival) ~ weight + tars,
               age = age, year = year, data = sparrowdata)
#Bootstrap parameters
b.1 <- boot.lmf(object = lmf.1, nboot = 10, sig.dj = TRUE,
 what = "all", asim = "parametric")
#Density plot
plot(b.1)

Run the code above in your browser using DataLab