Skip to contents

Simulate Longitudinal Data from a Stein-Fojo Model

Usage

SimLongitudinalSteinFojo(
  times = c(-100, -50, 0, 50, 100, 150, 250, 350, 450, 550)/365,
  sigma = 0.01,
  mu_s = log(c(0.6, 0.4)),
  mu_g = log(c(0.25, 0.35)),
  mu_b = log(60),
  omega_b = 0.2,
  omega_s = 0.2,
  omega_g = 0.2,
  link_dsld = 0,
  link_ttg = 0,
  link_identity = 0,
  link_growth = 0,
  link_shrinkage = 0,
  scaled_variance = TRUE
)

Arguments

times

(numeric)
the times to generate observations at.

sigma

(number)
the variance of the longitudinal values.

mu_s

(numeric)
the mean shrinkage rates for the two treatment arms.

mu_g

(numeric)
the mean growth rates for the two treatment arms.

mu_b

(numeric)
the mean baseline values for the two treatment arms.

omega_b

(number)
the baseline value standard deviation.

omega_s

(number)
the shrinkage rate standard deviation.

omega_g

(number)
the growth rate standard deviation.

(number)
the link coefficient for the derivative contribution.

(number)
the link coefficient for the time-to-growth contribution.

(number)
the link coefficient for the SLD Identity contribution.

(number)
the link coefficient for the log-growth parameter contribution.

(number)
the link coefficient for the log-shrinkage parameter contribution.

scaled_variance

(logical)
whether the variance should be scaled by the expected value (see the "Statistical Specifications" vignette for more details)

Slots

sigma

(numeric)
See arguments.

mu_s

(numeric)
See arguments.

mu_g

(numeric)
See arguments.

mu_b

(numeric)
See arguments.

omega_b

(numeric)
See arguments.

omega_s

(numeric)
See arguments.

omega_g

(numeric)
See arguments.

link_dsld

(numeric)
See arguments.

link_ttg

(numeric)
See arguments.

link_identity

(numeric)
See arguments.

link_growth

(numeric)
See arguments.

link_shrinkage

(numeric)
See arguments.

scaled_variance

(logical)
See arguments.