anova.gamMRSea: Anova Tables for 'gamMRSea' Models

View source: R/anova.gammrsea.R

anova.gamMRSeaR Documentation

Anova Tables for gamMRSea Models

Description

Calculates type-III analysis-of-variance tables for model objects produced by gamMRSea (in the MRSea package). Wald chisquare tests are calculated by default although, F-tests may be specified.

Usage

## S3 method for class 'gamMRSea'
anova(object, varshortnames = NULL, panelid = NULL, test = "Wald")

Arguments

object

A gamMRSea model object

varshortnames

(default = NULL). Character vector denoting the short names to use for any smooth terms. May already be specified as part of the model object.

panelid

vector of length of the data used in object. Specified if robust standard errors are to be used.

test

(default='wald'). May also specify "F".

Value

An object of class "anova".

Examples


# load data
data(ns.data.re)
ns.data.re$foldid<-getCVids(ns.data.re, folds=5)
 
model<-gamMRSea(birds ~ observationhour + as.factor(floodebb) + as.factor(impact),  
              family='poisson', data=ns.data.re)
anova(model)        
             

lindesaysh/MRSea documentation built on May 11, 2024, 11:30 p.m.