Nothing
#' @importFrom survival clogit coxph.control coxph Surv
#' @importFrom stats as.formula binomial glm logLik vcov
EstimateSplineUnconstrainedCC <- function(DATA, n.knots, covariates = NULL){
Dvar <- paste("D", 1:(n.knots+4), sep="")
formula <- as.formula(paste("Event ~", paste(c(covariates, ''), collapse = "+"), paste(Dvar, collapse= "+")))
logreg <- glm(formula, family = binomial, data=DATA)
coefs<-logreg$coefficients
SE<-data.frame(matrix(sqrt(diag(vcov(logreg))), nrow=1))
names(SE) <- names(coefs)
ll<-logLik(logreg)
return(list(coefs=coefs, SE=SE, ll=ll, Dvar=Dvar, vcovmat = vcov(logreg)))}
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.