pLC: Probability estimates from a log concave fit

Description Usage Arguments Author(s) Examples

View source: R/LogConcave.R

Description

Returns the the estimated probability from a log concave fit

Usage

1
  pLC(x, fit, covars)

Arguments

x

A vector of numeric values for which the estimated probabilities 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

Author(s)

Clifford Anderson-Bergman

Examples

 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
    
  pLC(0, fit)  						
  # Estimates the cdf at the true mode

  simData <- simPH_Censored()
  # Simulates current status data from a CoxPH model
  
  fit <- logconcave(simData$times, simData$x)
  # Fits coxPH model
  
  pLC(1, fit, covars = c(0,0))
  # Estimates the baseline probability at t = 1

logconPH documentation built on May 29, 2017, 3:33 p.m.