Nothing
"residuals.bqtl"<-
function(object,...)
{
coefs <- coef(object)
coef.names <- names(coefs)[-1] # drop intercept
bqtl.call <- match.call(bqtl,object$call)
bqtl.terms <- terms(eval(bqtl.call$reg.formula))
data.obj <- bqtl.call[["ana.obj"]]
newdata <- substitute(data.obj$data)
model.fr <-
model.frame(bqtl.terms,data=eval(newdata),
na.action=na.omit)
model.mat <- model.matrix(delete.response(bqtl.terms),model.fr)
response <- model.extract(model.fr,"response")
coef.order <- 1 + #assume intercept is first
match(dimnames(model.mat)[[2]][-1],coef.names)
resids <- response -model.mat %*% as.matrix( coefs[c(1,coef.order)] )
resids
}
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.