Learn R Programming

wqtrends (version 1.5.1)

anlz_mixmeta: Fit a mixed meta-analysis regression model of trends

Description

Fit a mixed meta-analysis regression model of trends

Usage

anlz_mixmeta(metseason, yrstr = 2000, yrend = 2019)

Value

A list of mixmeta fitted model objects

Arguments

metseason

output from anlz_metseason

yrstr

numeric for starting year

yrend

numeric for ending year

Details

Parameters are not back-transformed if the original GAM used a transformation of the response variable

Examples

Run this code
library(dplyr)

# data to model
tomod <- rawdat %>%
  filter(station %in% 34) %>%
  filter(param %in% 'chl') %>% 
  filter(yr > 2015)

mod <- anlz_gam(tomod, trans = 'log10')
metseason <- anlz_metseason(mod, doystr = 90, doyend = 180)
anlz_mixmeta(metseason, yrstr = 2016, yrend = 2019)

Run the code above in your browser using DataLab