An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090305/982321ca/attachment-0002.pl>
programing for partial maximum likelihood for cox models with two covariate
2 messages · Kourosh Ks, David Winsemius
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.