make.map: make.map: prepares map for APAM

Description Usage Arguments Details Examples

View source: R/make_map.R

Description

Prepares map for use in APAM.

Usage

1
2
3
4
5
6
7
8
make.map(
  data,
  setmap = NULL,
  crl.block = TRUE,
  no.pe = FALSE,
  no.logits = FALSE,
  no.Flogits = FALSE
)

Arguments

data

object returned from make.tmb.data

setmap

(optional) list, can be used to change default map settings. See details.

crl.block

(optional) T/F, turn on/off crl sd split? Default = T. See details.

no.pe

(optional) T/F, turn on/off process errors? Default = F.

no.logits

(optional) T/F, turn on/off all logit estimation? Default = F.

no.Flogits

(optional) T/F, turn on/off Flogit estimation? Default = F.

Details

setmap

list that contains parameter mapping. Default setmap=

  • meanF= c("5","6"),

  • stdF = c("5",rep("6+",length = data$A-5)),

  • ageFall = c("1",rep("2-11",10),rep("12-15",4)),

  • ageSpring = c("1","2",rep("3-13",11),rep("14-15",2)),

  • ageSpanish = NULL,

  • stdcrl = c(rep("5-6",2),rep("7-11",5),rep("12-14",3)),

  • stdpe = rep("all", data$A-1),

  • mapq = c(1:7,rep(NA,length = (data$A-1)-7))

crl.block

if TRUE, a separate crl sd is estimated pre/post 1993.

no.pe

if TRUE, sdpe is mapped out.

no.logits

if TRUE, all logit parameters are mapped out.

no.Flogits

if TRUE, all F logit parameters are mapped out.

Examples

1
2
3
4
## Not run: 
map <- make.map(data)

## End(Not run)

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