Description Usage Arguments Value Examples
Estimate survival probabilities by empirical likelihood-based (EL) method
1 2 |
y |
a numeric vector of observed time |
delta |
a factor vector of indicator for events |
treat |
a factor vector of the treatment indicator |
x |
an optional covariance matrix containing the variables in the model |
psix_moment |
|
treat.select |
a value of 1 (treatment) or 0 (control) |
t |
a numeric vector of time points for estimation |
get.sd |
a logical object of whether return bootstrap standard deviation, default by |
Nboot |
number of iterations in Bootstrap, default by |
standardize |
a logical object of whether the covariance matrix |
A numeric vector with the same length of treat
, which contains the propensity scores for each observations.
1 2 3 4 5 6 7 8 9 | library(survival)
y <- as.matrix(gbsg$rfstime/(365.25/12))
treat <- data.matrix(gbsg$hormon)
delta <- as.matrix(gbsg$status)
x <- data.matrix(gbsg[,c("age","meno","size","grade","nodes","pgr","er")])
t <- seq(0,80,2)
el.est(y=y,delta=delta,treat=treat,x=x,psix_moment="first",treat.select=1,t=t,
get.sd=TRUE,Nboot=500,standardize=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.