Learn R Programming

Surrogate (version 3.4.4)

longitudinal_ica: Calculate the longitudinal ICA from a fitted model

Description

The evaluation grid is mandatory because it defines the treatment-effect trajectories and therefore the longitudinal ICA estimand.

Usage

longitudinal_ica(
  object,
  evaluation_times,
  sensitivity = list(residual = seq(-1, 1, by = 0.1), random_effects = seq(-1, 1, by =
    0.1)),
  extrapolation = c("warn", "allow", "error"),
  return_candidates = FALSE,
  progress = FALSE,
  tol = 1e-12
)

Value

An object of class surrogate_longitudinal_ica.

Arguments

object

A fitted longitudinal surrogate model.

evaluation_times

A common numeric grid, endpoint-specific T/S grids, or "common_observed".

sensitivity

A list. Element residual is the grid for the four unidentified residual cross-world correlations. For RI models, random_effects is the corresponding random-intercept grid. For RI/RS models, random_completions must be a list of cross-arm covariance matrices Cov(b0,b1).

extrapolation

Extrapolation action; default "warn".

return_candidates

Retain admissible completion components.

progress

Display progress for large calculations.

tol

Numerical tolerance.