Nothing
#'Pseudo R-square Values for Binomial Logistic Regression
#'
#'@param model name of model
#'@examples
#'mymodel<-glm(dv~iv1+iv2+iv3+iv4, testlog,family = binomial())
#'pseudo(model=mymodel)
#'
#'@return Pseudo R-square Values for Logistic Regression
#'@export
pseudo<-function(model=NULL)
{
mymodel<-model
nulldev<-mymodel$null.deviance
moddev<-mymodel$deviance
n<-mymodel$df.null+1
R2_L<-round(1-(moddev/nulldev),3)
R2_M <-round(1-exp(-(nulldev-moddev)/n),3)
R2_N <-round(R2_M/(1-exp(-(nulldev/n))),3)
message("Likelihood Ratio R-squared (McFadden, Recommended) = ",R2_L)
message("Cox-Snell R-squared) = ",R2_M)
message("Nagelkerk R-squared = ",R2_N)
}
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.