[R] hat matrix for zeroinfl and hurdle objects

2012-08-22 Thread Christopher Desjardins
Hi, I am wondering if there is an easy way to access the hat matrix for zeroinfl and hurdle objects in the pscl library? Thanks, Chris [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] Hat Matrix

2011-08-22 Thread hyak
Hi, I'm a new user of R - Is this how you construct a hat matrix? H <- x %*% solve(t(x) %*% x) %*% t(x) H colnames(H) = rep('', 11) round(H,2) If so can you make them for more than 2 matrices? Why do you have to use the 2nd piece of code to round and stuff? Shouldn't it be correct from the start

[R] Hat matrix and MSEP

2010-04-02 Thread linda garcia
Dear all, I have 100 x 5 data matrix and 100 x 1 response vector. I have calculated Hat matirx and the diagonal of the matrix. Now I want to know if the diagonals say something about future prediction( Mean square error for preidiction)? Can I get variance explained for future data?