PO | R Documentation |
NPMLE for Logistic-CoxPH Cure-Rate Model
PO(formula, data, C, df, weights, subset, init,control, singular.ok = TRUE,model = FALSE,x = FALSE, y = TRUE, tt, method = c('U-method','B-spline','NPMLE','glasso','glasso-PLH'),...)
formula |
a formula object, with the response on the left of a ~
operator, and the terms on the right. The response must be a survival object
as returned by the |
data |
a |
C |
Censoring time |
df |
degree of freedom |
weights |
vector of case weights, see the note below. For a thorough discussion of these see the book by Therneau and Grambsch. |
subset |
expression indicating which subset of the rows of data should be used in the fit. All observations are included by default. |
init |
vector of initial values of the iteration. Default initial value is zero for all variables. |
control |
Object of class |
singular.ok |
logical value indicating how to handle collinearity in
the model matrix. If |
model |
logical value: if |
x |
logical value: if |
y |
logical value: if |
tt |
optional list of time-transform functions. |
method |
a character string specifying the method in |
... |
other parameters passed to |
Jue Hou
# A simulated data set require(survival) data('sim_PO_data') res = PO(Surv(X, delta) ~ Z[,1]+ Z[,2]+ Z[,3],data = sim_PO_data) # Or you may generate another one set.seed(1) df = 10 nn = 1000 beta = c(0.5,0,-0.5, rep(0,10)) sim_PO_data = PO.sim(nn, beta, C.gen = function(n) 5+rbinom(n,1,0.5)*runif(n, -5, 0)) # Fit PO model res = PO(Surv(X, delta) ~ Z[,1]+ Z[,2]+ Z[,3]+ Z[,4]+ Z[,5]+ Z[,6],data = sim_PO_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.