[R] programing for partial maximum likelihood for cox models with two covariate

David Winsemius dwinsemius at comcast.net
Thu Mar 5 17:41:05 CET 2009


On Mar 5, 2009, at 10:08 AM, Kourosh Ks wrote:

> dears,
> I like two write a program with R to estimate  the coefficients of  
> covariate,I like two know the original program for this programing  
> for partial maximum likelihood for cox models with two co variate.
>
> I did it with coxph command,
>


 > library(survival)
Loading required package: splines
 > coxph
function (formula = formula(data), data = parent.frame(), weights,
     subset, na.action, init, control, method = c("efron", "breslow",
         "exact"), singular.ok = TRUE, robust = FALSE, model = FALSE,
     x = FALSE, y = TRUE, ...)
{
     method <- match.arg(method)
     call <- match.call()
     m <- match.call(expand.dots = FALSE)
     temp <- c("", "formula", "data", "weights", "subset", "na.action")
     m <- m[match(temp, names(m), nomatch = 0)]
     special <- c("strata", "cluster")
     Terms <- if (missing(data))

< Output that goes on for about 3.5 pages was truncated>

-- 
David Winsemius

> thanks
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list