make.gamMRSea: Function to make model of class 'gamMRSea'

View source: R/make.gamMRSea.R

make.gamMRSeaR Documentation

Function to make model of class gamMRSea

Description

Function to allow a model of class gamMRSea to be updated to include a panel structure or shortnames to make summary and anova outputs more readable. Function to update an lm or glm model to class gamMRSea.

Usage

make.gamMRSea(
  model,
  panelid = NULL,
  splineParams = NULL,
  varshortnames = NULL,
  gamMRSea = FALSE
)

Arguments

model

model object of class glm or gamMRSea

panelid

vector of length of the data containing the panel identification for each row of data

splineParams

MRSea based list object

varshortnames

vector containing the short names for each variable. These are used in summary and anova

gamMRSea

logical stating whether the call of the model should be changed to 'gamMRSea' from glm

Author(s)

LAS Scott-Hayward, University of St Andrews


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