ResultTableSummary2 {BSTZINB}R Documentation

Generate a summary table of the outputs all different methods given the data

Description

Fits BSTP, BSTNB and BSTZINB (with linear or non-linear temporal trend) to a given data and summarizes the results in a table

Usage

ResultTableSummary2(y,X,A,LinearT=FALSE,
                           nchain=3,niter=100,nburn=20,nthin=1)

Arguments

y

vector of counts, must be non-negative

X

matrix of covariates, numeric

A

adjacency matrix, numeric

LinearT

logical, whether to fit a linear or non-linear temporal trend

nchain

positive integer, number of MCMC chains to be run

niter

positive integer, number of iterations in each chain

nburn

non-negative integer, number of iterations to be discarded as burn-in samples

nthin

positive integer, thinning interval

Value

summary tables for the different methods

Examples

data(simdat)
y <- simdat$y
X <- cbind(simdat$V1,simdat$x)
data(county.adjacency)
data(USAcities)
IAcities <- subset(USAcities,state_id=="IA")
countyname <- unique(IAcities$county_name)
A <- get_adj_mat(county.adjacency,countyname,c("IA"))

ResultTableSummary2(y, X, A, LinearT=TRUE, nchain=3, niter=100, nburn=20, nthin=1)


[Package BSTZINB version 2.0.0 Index]