Learn R Programming

litterfitter (version 0.1.4)

plot.litfit_bootstrap: Plot the bootstrap distribution for a parameter from a litfit object

Description

Plot a bootstrap distribution of a particular coefficient

Usage

# S3 method for litfit_bootstrap
plot(x,coef.index,bw,...)

Value

plot of litfit_bootstrap object, returns invisibly

Arguments

x

litfit object

coef.index

coefficient number to plot from the litfit object, see order of coefficients for that particular model. Default is to plot the first parameter for that model

bw

bandwidth (or bandwidth algorithm see density) for the density plot

...

additional arguments passed to plot.default

Author

James Weedon

Details

The grey fill goes from 0.025 quantile to the 0.975 quantile of the distribution. Red line shows the mean. Blue line shows the median.

See Also

fit_litter bootstrap_parameters density

Examples

Run this code
fit <- fit_litter(time=pineneedles$Year,
mass.remaining=pineneedles$Mass.remaining, model='neg.exp', iters=200)
boot1 <- bootstrap_parameters(fit, nboot = 500)
plot(boot1)

Run the code above in your browser using DataLab