sarla_sim: Simulate a random walk with trends

View source: R/sim.R

sarla_simR Documentation

Simulate a random walk with trends

Description

Simulate a random walk with trends

Usage

sarla_sim(
  sigma_p = 0.2,
  sigma_o = 0.1,
  Nages = 7,
  Nyears = 22,
  beta = 0.5,
  sigma_p_X0 = sigma_p,
  gamma_y_sd = 0,
  delta_c_sd = 0,
  eta_c_sd = 0
)

Arguments

sigma_p

double setting process error sd. 0.2 by default.

sigma_o

double setting observation error sd. 0.1 by default.

Nages

integer setting the number of ages. 7 by default.

Nyears

integer setting the number of years. 22 by default.

beta

double setting the degree of autocorrelation. 0.5 by default.

sigma_p_X0

double setting the sd of variation in starting values. Defaults to equivalent to sigma_p

gamma_y_sd

double setting the sd of year variation. Default is 0.

delta_c_sd

double setting the sd of cohort effect variation. Defaults to 0.

eta_c_sd

double setting the sd of the initial size cohort effect. Defaults to 0.

Value

list of simulated data


ChristineStawitz-NOAA/stspsize documentation built on July 16, 2025, 8:15 p.m.