[R] Some matrix and sandwich questions

Christian Ritz ritz at life.ku.dk
Tue Oct 30 16:38:19 CET 2007


Dear Michael,

as to questions 1) and 2):

The following article by A. Zeileis provides more details on the 
package 'sandwich':

http://www.jstatsoft.org/v16/i09/

(see also the references).


Use 'model.matrix' to construct a design matrix:

x <- runif(10,0,10)
model.matrix(~x)



Christian



More information about the R-help mailing list