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

2009-03-05 Thread Kourosh Ks
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,

thanks


  
[[alternative HTML version deleted]]

__
R-help@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.


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

2009-03-05 Thread 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@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.


__
R-help@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.