Learn R Programming

ctsem (version 3.11.0)

summary.ctEmpiricalBayesFit: Summarise empirical Bayes subject-wise ctsem fits

Description

Summarise empirical Bayes subject-wise ctsem fits

Usage

# S3 method for ctEmpiricalBayesFit
summary(
  object,
  use = c("rawest", "rawposterior"),
  probs = c(0.025, 0.5, 0.975),
  sdscale = c("unit", "rawsd"),
  minsd = 1e-06,
  digits = 4,
  ...
)

Value

Compact list containing fit settings, transformed-parameter summaries, outlier diagnostics, and transformed-parameter covariance / correlation matrices. The subject fit lists, raw estimate matrices, pass maps, and adjusted model remain on the original ctEmpiricalBayesFit object.

Arguments

object

Object returned by ctEmpiricalBayesFit.

use

'rawest' to summarise final-pass subject point estimates, or 'rawposterior' to pool final-pass subject raw posterior samples.

probs

Quantiles to report for transformed parameters.

sdscale

How to set model$pars$sdscale when reconstructing the adjusted single-subject empirical Bayes model from the final empirical raw distribution. 'unit' keeps any later random-effect SDs on the EB-standardised raw scale. 'rawsd' uses the final empirical raw SDs directly. Retained for compatibility; summary() no longer returns a reconstructed model.

minsd

Lower bound used for empirical raw SDs before model adjustment.

digits

Number of digits for printed summary tables.

...

Unused.