Description Usage Arguments Author(s) Examples
Returns the the estimated density from a log concave fit
1 | dLC(x, fit, covars)
|
x |
A vector of numeric values for which the estimated density will be calculated |
fit |
Log concave fit (from the logconcave() function) |
covars |
A matrix of covariate values. Number of columns must match number in original fit |
Clifford Anderson-Bergman
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | fit = logconcave(rnorm(500) )
# Fits a log concave estimator to an uncensored sample
dLC(0, fit)
# Estimates the density at the true mode
simData <- simPH_Censored()
# Simulates current status data from a CoxPH model
fit <- logconcave(simData$times, simData$x)
# Fits coxPH model
dLC(1, fit, covars = c(0,0))
# Estimates the baseline density at t = 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.