Calculates the product of X*beta_true .
calculate_XB_true(X, beta_true, g, g_true, method_estimate_beta)Returns a NxT matrix (if method_estimate_beta == "individual"), and otherwise NA.
X: NxTxp array containing the observable variables
true coefficients of the observable variables
Vector with estimated group membership for all individuals
true group membership
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".