Skip to contents

Creates an instance of the ftmglm class, initializing it with specific matrices necessary for the flexible transfer model calculations. This function is typically called internally within higher-level functions that prepare data and perform model fitting.

Usage

ftmglm(XtWX, XtWz)

Arguments

XtWX

A numeric matrix representing the weighted cross product of predictors.

XtWz

A numeric matrix representing the weighted cross product of predictors and outcomes.

Value

An object of class ftmglm.

See also

ftmglm-class for details on the class structure.

Examples

if (FALSE) { # \dontrun{
  XtWX <- matrix(rnorm(100), 10, 10)
  XtWz <- matrix(rnorm(10), 10, 1)
  model <- ftmglm(XtWX, XtWz)
} # }