Learn R Programming

ASMbook (version 1.0.2)

Functions for the Book "Applied Statistical Modeling for Ecologists"

Description

Provides functions to accompany the book "Applied Statistical Modeling for Ecologists" by Marc Kéry and Kenneth F. Kellner (2024, ISBN: 9780443137150). Included are functions for simulating and customizing the datasets used for the example models in each chapter, summarizing output from model fitting engines, and running custom Markov Chain Monte Carlo.

Copy Link

Version

Install

install.packages('ASMbook')

Monthly Downloads

314

Version

1.0.2

License

GPL-3

Maintainer

Ken Kellner

Last Published

July 31st, 2024

Functions in ASMbook (1.0.2)

simDat5

Simulate data for Chapter 5: Simple linear regression
simDat15

Simulate data for Chapter 15: Comparing two groups of binomial counts
simDat16

Simulate data for Chapter 16: Binomial ANCOVA
simDat14

Simulate data for Chapter 14: Poisson GLMM
simDat19B

Simulate data for Chapter 19B: Binomial N-mixture Model
simDat19

Simulate data for Chapter 19: Occupancy model
simDat4

Simulate data for Chapter 4: Model of the mean
simDat17

Simulate data for Chapter 17: Binomial GLMM
simDat18

Simulate data for Chapter 18: model selection
simDat20

Simulate data for Chapter 20: Integrated model
simDat62

Simulate data for Chapter 6.2: Two groups with equal variance
simDat9

Simulate data for Chapter 9: ANCOVA or general linear model
simDat8

Simulate data for Chapter 8: Two-way ANOVA
simDat73

Simulate data for Chapter 7.3: ANOVA with random effects of population
simDat72

Simulate data for Chapter 7.2: ANOVA with fixed effects of population
tmbSummary

Summarize Output from TMB
simDat63

Simulate data for Chapter 6.3: Two groups with unequal variance
demoMCMC

Fit a Poisson GLM with MCMC
simDat123

Simulate data for Chapter 12.3: Zero-inflated counts
simDat122

Simulate data for Chapter 12.2: Overdispersed counts
simDat124

Simulate data for Chapter 12.4: Counts with offsets
nimbleSummary

Summarize MCMC Samples in an mcmc.list Object Created by NIMBLE
simDat13

Simulate data for Chapter 13: Poisson ANCOVA
simDat105

Simulate data for Chapter 10.5: Linear mixed-effects model with correlation between intercepts and slopes
simDat11

Simulate data for Chapter 11: Comparing two groups of Poisson counts
getMLE

Print Estimates, Standard Errors, and 95% Wald-type Confidence Intervals From optim Output
simDat102

Simulate data for Chapter 10.2: Linear mixed-effects model