Nothing
predict.dsda <- function(object,newx, z=NULL, ztest=NULL, gamma=NULL, ...){
if (is.null(z)){
beta <- object$beta
pred <- as.matrix(cbind(1,newx)%*%beta)
pred <- ifelse(pred>0,2,1)
}else{
beta <- object$beta
pred <- as.matrix(cbind(1,newx)%*%beta+ztest%*%gamma)
print('a')
print(pred)
pred <- ifelse(pred>0,2,1)
}
pred
}
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.