These functions return a function to use inside sim_distribution
.
sim_ays_covar(
sd = 2.8,
range = 300,
lambda = 1,
model = "matern",
phi_age = 0.5,
phi_year = 0.9,
group_ages = 5:20,
group_years = NULL
)
Variance (can be age specific).
Decorrelation range
Controls the degree of smoothness of Matern covariance process
String indicating either "exponential" or "matern" as the correlation function
Defines autocorrelation through ages. Can be one value or a vector of the same length as ages
Defines autocorrelation through years. Can be one value or a vector of the same length as years
Make space-age-year noise equal across these ages
Make space-age-year noise equal across these years
Returns a function for use inside sim_distribution
.