fit_growth_rate {aedseo}R Documentation

Fit a growth rate model to time series observations.

Description

[Stable]

This function fits a growth rate model to time series observations and provides parameter estimates along with confidence intervals.

Usage

fit_growth_rate(
  observations,
  level = 0.95,
  family = c("poisson", "quasipoisson")
)

Arguments

observations

A numeric vector containing the time series observations.

level

The confidence level for parameter estimates, a numeric value between 0 and 1.

family

A character string specifying the family for modeling. Choose between "poisson," or "quasipoisson".

Value

A list containing:

Examples

# Fit a growth rate model to a time series of counts
# (e.g., population growth)
data <- c(100, 120, 150, 180, 220, 270)
growth_rate_model <- fit_growth_rate(
  observations = data,
  level = 0.95,
  family = "poisson"
)

# Print the estimated growth rate and confidence interval
print(growth_rate_model$estimate)


[Package aedseo version 0.1.2 Index]