make.LI: make.LI: run local influence diagnostics for APAM.

Description Usage Arguments Details Examples

View source: R/make_LI.R

Description

To run local influence diagnostics for full model and individual data components.

Usage

1
make.LI(mfits, pert = NULL, all = TRUE, age = FALSE, year = FALSE)

Arguments

mfits

object returned from make.fit

pert

(optional) vector, to manually set which perturbations to run. Runs all by default. See details.

all

T/F, to run individual (i.e. age and year) perturbations. Default = TRUE.

age

T/F, to run age group perturbations. Default = FALSE.

year

T/F, to run year group perturbations. Default = FALSE.

Details

pert

For all age and year group perturbations, pert is a vector of length (nyears*nages). Default pert = c(1:870). For age group perturbations, pert has length = nages, and for year group perturbations, pert has length = nyears.

Examples

1
2
3
4
5
6
7
## Not run: 
LI <- make.LI(mfits)

#to run age group perturbations
LI_age <- make.LI(mfits,age=T)

## End(Not run)

SineAndie/APAM documentation built on Dec. 18, 2021, 2:05 p.m.