boot_mse: Estimation of 95% bootstrap confidence intervals.

Description Usage Arguments Value

View source: R/functions.R

Description

boot_mse performs a parametric bootstrap for a selected model, and computes 95% confidence intervals.

Usage

1
boot_mse(object, modelnr = NULL, rep = 1000, seed = 1)

Arguments

object

an object created with the function model_search.

modelnr

the number of the model in object that is to be bootstrapped. If left unspecified, the model with the lowest BIC will be selected.

rep

the number of bootstrap replications.

seed

a scalar to set the random seed.

Value

A list with tables and, if the variable year is specified, a list with plots.

tables

table(s) with the number of observations, the population size estimate with the 95% bootstrap confidence interval. If covariates are present, the results are given for the levels of (pairs of) the covariates. If the variable year is specified, these results are presented for the distinct periods of time.

plots

if the covariate year is present, plots of the population size estimates and 95% confidence intervals are produced that show the estimated trends over the distinct periods of time.


MaartenCruyff/mse documentation built on Dec. 26, 2021, 2:13 a.m.