model_nocovars: Estimate model parameters in GLMM using rstan with no...

Description Usage Arguments Value Author(s)

Description

Estimate model parameters in GLMM using rstan with no environmental covariates

Usage

1
2
model_nocovars(y, lag, K, X, cellid, iters = 2000, warmup = 1000,
  nchains = 1, inits)

Arguments

y

Vector of responses (cover observations)

lag

Vector of lag response for temporal response (previous year's cover)

K

Spatial field matrix

cellid

Vector of unique ID's for each spatial cell, replicate through time

iters

Number of MCMC iterations to run

warmup

Number of MCMC iterations to throw out before sampling (< iters)

nchains

Number of MCMC chains to sample

inits

A list of lists whose length is equal to number of chains. Elements include initial values for parameters to be estimated.

Value

A list with ggs object with MCMC values from rstan and Rhat values for each parameter.

Author(s)

Andrew Tredennick


atredennick/sageAbundance documentation built on May 10, 2019, 2:11 p.m.