calculate_XB_true: Calculates the product of X*beta_true .

View source: R/03_IFE_algorithm_functions.R

calculate_XB_trueR Documentation

Calculates the product of X*beta_true .

Description

Calculates the product of X*beta_true .

Usage

calculate_XB_true(X, beta_true, g, g_true, method_estimate_beta)

Arguments

X

X: NxTxp array containing the observable variables

beta_true

true coefficients of the observable variables

g

Vector with estimated group membership for all individuals

g_true

true group membership

method_estimate_beta

defines how beta is estimated. Default case is an estimated beta for each individual. Default value is "individual." Possible values are "homogeneous", "group" or "individual".

Value

Returns a NxT matrix (if method_estimate_beta == "individual"), and otherwise NA.


eh-in-r/RCTS documentation built on May 19, 2023, 1:09 p.m.