Match_cb: Select matched observations from original $crossbasis$...

Description Usage Arguments Value

Description

Select matched observations from original $crossbasis$ matrix.

Usage

1
2
3
Match_cb(root = "~/Documents/NMMAPS/", criterion, city, control_ratio = 10,
  lag_1 = -2, lag_2 = 7, arglag = list(fun = "integer"),
  collapseAge = TRUE, age_cat = NULL)

Arguments

root

The local path where the NMMAPS data is located.

criterion

A character string which could be "rain50", "wind18", etc.

city

A character string giving the abbreviation of city's name.

control_ratio

A integer vector giving the number of control days for one storm day.

lag_1

A integer vector giving number of lagged days before a certain storm day.

lag_2

A integer vector giving number of lagged days after a certain storm day.

arglag

lists of arguments to be passed to the function onebasis for generating the two basis matrices for predictor and lags, respectively. See Details below.

collapseAge

Logic value specifying whether to aggregate records based on age group.

age_cat

A character string giving the selected age categories.

Value

This function returns $crossbasis$ object.


my1120/Hurricane documentation built on May 23, 2019, 11:58 a.m.