simulate_parameters: Simulate parameters

simulate_parametersR Documentation

Simulate parameters

Description

Simulate parameters

Usage

simulate_parameters(
  n,
  model = "sigmoid",
  prior_pars = c(v_sd = 1.2, rate_shape = 2, rate_scale = 0.25, time_shape = 5,
    time_scale = 5),
  alpha = 0.01
)

Arguments

n

# of parameter sets to simulate

model

model to fit:

sigmoid

one sigmoidal response

impulse

two sigmoidal responses

prior_pars

Named numeric vector of parameters to use for priors (if use_prior is TRUE)

v_sd

Gaussian SD of assymptotes (v_inter and v_final)

rate_shape

Shape of rate Gamma

rate_scale

Scale of rate Gamma

time_shape

Shape of t_rise and t_fall - t_rise Gamma

time_scale

Scale of t_rise and t_fall - t_rise Gamma

alpha

tail fraction to sample from for asymptote changes

Examples

simulate_parameters(n = 20)

calico/impulse documentation built on June 4, 2024, 5:28 a.m.