prepare_stcos_demo: Prepare Demo Data for STCOS Model

View source: R/prepare_stcos_demo.R

prepare_stcos_demoR Documentation

Prepare Demo Data for STCOS Model

Description

Create demo data based on ACS example, making a few simple model choices. The purpose of this function is to facilitate examples in other functions. Uses functions in the package to create model terms from shapefiles.

Usage

prepare_stcos_demo(num_knots_sp = 200, basis_mc_reps = 200, eigval_prop = 0.65)

Arguments

num_knots_sp

Number of spatial knots to use in areal space-time basis.

basis_mc_reps

Number of monte carlo reps to use in areal space-time basis.

eigval_prop

Proportion of variability to keep in dimension reduction of basis expansions.

Value

A list containing the following:

  • z direct estimates.

  • v direct variance estimates.

  • H overlap matrix.

  • S design matrix of basis expansion.

  • K covariance matrix of the random effect.

Examples

## Not run: 
out = prepare_stcos_demo()

## End(Not run)

stcos documentation built on Aug. 21, 2023, 5:13 p.m.