check_inits_pg_splm: Check initial values

View source: R/check-inits.R

check_inits_pg_splmR Documentation

Check initial values

Description

this function check that the initial values for pg_splm() are properly specified

Usage

check_inits_pg_splm(
  Y,
  X,
  locs,
  inits,
  corr_fun = "exponential",
  shared_covariance_params = TRUE
)

Arguments

Y

is a n x d matrix of multinomial count data.

X

is a n x p matrix of variables.

locs

is a n x 2 matrix of observation locations.

inits

is the list of current initial values

corr_fun

is a character that denotes the correlation function form. Current options include "matern" and "exponential".

shared_covariance_params

is a logical input that determines whether to fit the spatial process with component specifice parameters. If TRUE, each component has conditionally independent Gaussian process parameters theta and tau2. If FALSE, all components share the same Gaussian process parameters theta and tau2.


jtipton25/pgR documentation built on July 8, 2022, 12:44 a.m.