h_get_empirical: Obtain Empirical/Jackknife/Bias-Reduced Covariance

View source: R/empirical.R

h_get_empiricalR Documentation

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)

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".

Value

Named list with elements:

  • cov: matrix empirical covariance.

  • df_mat: matrix to calculate Satterthwaite degree of freedom.


mmrm documentation built on Oct. 7, 2024, 1:14 a.m.