Previous: The Intuitive Layout | Up: Easy Ways to Manage | Next: The Memory-Efficient Layout |
Choosing array 53#53 and vector 12#12 is probably the the most computationally-efficient configuration: model.matrix(..., shape = "array") produces an 122#122 array where 123#123 is the total number of equations and 124#124 is the total number of parameters across all the equations. Since some parameter values may be constrained across equations, 125#125 . If a variable is not in a certain equation, it is observed as a vector of 0s. With this option, each 70#70 69#69 matrix becomes:
126#126 |
Correspondingly, 12#12 is a vector with elements
115#115 |
eta <- apply(X, 3, '%*%', beta)The linear predictor eta is therefore a 128#128 matrix.