Learn R Programming

mmrm (version 0.3.14)

h_get_empirical: Obtain Empirical/Jackknife/Bias-Reduced Covariance

Description

Obtain the empirical or Jackknife covariance for \(\beta\). Used in mmrm fitting if method is "Empirical", "Empirical-Jackknife" or "Empirical-Bias-Reduced".

Usage

h_get_empirical(tmb_data, theta, beta, beta_vcov, type)

Value

Named list with elements:

  • cov: matrix empirical covariance.

  • df_mat: matrix to calculate Satterthwaite degree of freedom.

Arguments

tmb_data

(mmrm_tmb_data)
produced by h_mmrm_tmb_data().

theta

(numeric)
theta estimate.

beta

(numeric)
beta estimate.

beta_vcov

(matrix)
covariance of beta estimate.

type

(string)
type of empirical method, including "Empirical", "Empirical-Jackknife" and "Empirical-Bias-Reduced".