Description Usage Arguments Author(s) Examples
Plots the fit of a log concave object
1 |
fit |
A fit object returned from a call to logconcave |
funtype |
Type of function plotted. Choices are 'surv', 'pdf' or 'cdf'. If missing, 'surv' in default |
covars |
CoxPH covariates |
... |
Additional arguments to be passed to lines |
Clifford Anderson-Bergman
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | fit = logconcave(rnorm(500) )
# Fits a log concave estimator to an uncensored sample
plotLC(fit)
# Plots the estimated survival distribution
simData <- simPH_Censored()
# Simulates current status data from a CoxPH model
fit <- logconcave(simData$times, simData$x)
# Fits coxPH model
plotLC(fit, covars = c(0,0), funtype = 'cdf')
# Plots the estimated baseline cdf
linesLC(fit, covars = c(1,1), funtype = 'cdf', col = 'red')
# Plots the estimates cdf with covariates c(1,1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.