search for: betamat

Displaying 1 result from an estimated 1 matches for "betamat".

Did you mean: betamax
2008 Jan 20
2
Efficient way for multiplying vectors with a only certain number of rows in a matrix
...rently not able to solve efficiently. It is about multiplying one column of a matrix with only a certain number of rows of another matrix. Let me illustrate my problem with an example: n.obs = 800 n.rowsperobs = 300 n.param = 23 Designmat = matrix(rnorm(n.obs*n.rowsperobs*n.param),ncol=n.param) Betamat = matrix(rnorm(n.obs*n.param),nrow=n.param) In this example, "Designmat" consists of 800*300 rows, meaning that 300 rows belong to one of the 800 observations. Each observation has also one parameter vector, which is one column in the "Betamat"-matrix (i.e. Betamat contains th...