Nothing
"sir"<-function(formula1=NULL, formula2=NULL){
if(!is(formula1, "formula")){stop("formula not passed to formula1 in sir")}
if(!is(formula2, "formula")){stop("formula not passed to formula2 in sir")}
formula1<-update.formula(formula1, ~.-1)
formula2<-update.formula(formula2, ~.-1)
# X1<-sparse.model.matrix(formula1)
# X2<-sparse.model.matrix(formula2)
X1<-model.matrix(formula1)
X2<-model.matrix(formula2)
if(dim(X1)[2]!=dim(X2)[2]){
stop("sir formulae invalid: factor levels of intersecting variables have to be the same")
}else{
X1%*%t(X2)
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.