Skip to contents

Simulate a Stein-Fojo longitudinal model with covariates

Construct a covariate Stein-Fojo simulator

Usage

SimLongitudinalSteinFojoCov(
  times = c(-100, -50, 0, 50, 100, 150, 250, 350, 450, 550)/365,
  mu_b_formula = ~study,
  omega_b_formula = ~study,
  mu_s_formula = ~arm,
  omega_s_formula = ~arm,
  mu_g_formula = ~arm,
  omega_g_formula = ~arm,
  mu_b_parametrization = "linear",
  omega_b_parametrization = "log-linear",
  mu_s_parametrization = "linear",
  omega_s_parametrization = "log-linear",
  mu_g_parametrization = "linear",
  omega_g_parametrization = "log-linear",
  mu_b_intercept = log(60),
  mu_b_coefficients = numeric(),
  omega_b_intercept = log(0.2),
  omega_b_coefficients = numeric(),
  mu_s_intercept = log(0.5),
  mu_s_coefficients = numeric(),
  omega_s_intercept = log(0.2),
  omega_s_coefficients = numeric(),
  mu_g_intercept = log(0.3),
  mu_g_coefficients = numeric(),
  omega_g_intercept = log(0.2),
  omega_g_coefficients = numeric(),
  sigma = 0.01,
  link_dsld = 0,
  link_ttg = 0,
  link_identity = 0,
  link_growth = 0,
  link_shrinkage = 0,
  scaled_variance = FALSE
)

Arguments

times

(numeric) Observation times.

mu_b_formula

(formula) One-sided formula for subject-level covariate effects on the baseline mean.

omega_b_formula

(formula) One-sided formula for subject-level covariate effects on the baseline standard deviation.

mu_s_formula

(formula) One-sided formula for subject-level covariate effects on the shrinkage mean.

omega_s_formula

(formula) One-sided formula for subject-level covariate effects on the shrinkage standard deviation.

mu_g_formula

(formula) One-sided formula for subject-level covariate effects on the growth mean.

omega_g_formula

(formula) One-sided formula for subject-level covariate effects on the growth standard deviation.

mu_b_parametrization

(character) Parametrization of the baseline mean predictor.

omega_b_parametrization

(character) Parametrization of the baseline standard deviation predictor. Only "exponential" and "log-linear" are supported.

mu_s_parametrization

(character) Parametrization of the shrinkage mean predictor.

omega_s_parametrization

(character) Parametrization of the shrinkage standard deviation predictor. Only "exponential" and "log-linear" are supported.

mu_g_parametrization

(character) Parametrization of the growth mean predictor.

omega_g_parametrization

(character) Parametrization of the growth standard deviation predictor. Only "exponential" and "log-linear" are supported.

mu_b_intercept

(numeric) Intercept for the baseline mean predictor.

mu_b_coefficients

(numeric) Covariate coefficients for the baseline mean predictor.

omega_b_intercept

(numeric) Intercept for the baseline standard deviation predictor.

omega_b_coefficients

(numeric) Covariate coefficients for the baseline standard deviation predictor.

mu_s_intercept

(numeric) Intercept for the shrinkage mean predictor.

mu_s_coefficients

(numeric) Covariate coefficients for the shrinkage mean predictor.

omega_s_intercept

(numeric) Intercept for the shrinkage standard deviation predictor.

omega_s_coefficients

(numeric) Covariate coefficients for the shrinkage standard deviation predictor.

mu_g_intercept

(numeric) Intercept for the growth mean predictor.

mu_g_coefficients

(numeric) Covariate coefficients for the growth mean predictor.

omega_g_intercept

(numeric) Intercept for the growth standard deviation predictor.

omega_g_coefficients

(numeric) Covariate coefficients for the growth standard deviation predictor.

sigma

(numeric) Observation-error standard deviation.

(numeric) Coefficient for the DSLD association link.

(numeric) Coefficient for the TTG association link.

(numeric) Coefficient for the identity association link.

(numeric) Coefficient for the growth association link.

(numeric) Coefficient for the shrinkage association link.

scaled_variance

(logical) Whether to use multiplicative observation error.

Value

A SimLongitudinalSteinFojoCov object.