search for: pontarelli

Displaying 2 results from an estimated 2 matches for "pontarelli".

Did you mean: fonzarelli
2006 Feb 17
3
Matrix indexing in a loop
How do you specify matrix location a[i,j] (or a[i-1,j], etc.) in a "for" loop? I am looking for a flexible method of indexing neighbors over a series of lags (1,2,3...) and I may wish to extend this method to 3D arrays. Example: Data matrix > fun [,1] [,2] [,3] [1,] 1 5 9 [2,] 2 6 10 [3,] 3 7 11 [4,] 4 8 12 For each element a[i,j] in
2006 Feb 02
0
Computing s^2 for non-negative least squares.
I know this isn't 100% an R question, but... I have successfully used optim to compute a non-negative regression and would like to compute standard errors for the non-negative coefficients. How do I do this? Also, are there any references where I can read up on the theory. Thanks. --Brett [[alternative HTML version deleted]]