View source: R/plot.boot.lmf.R
| plot.boot.lmf | R Documentation |
Plots density plots for bootstrap replicates of parameters from objects of class "lmf".
## S3 method for class 'boot.lmf'
## S3 method for class 'boot.lmf'
plot(x, what = c("all"), ...)
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 |
Density of parameters is calculated using the function density.
Thomas Kvalnes
boot.lmf, density, plot.default
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.