calculate_XB_true {RCTS} | R 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.
[Package RCTS version 0.2.4 Index]