simCensored: Simulate current status data from Cox-PH model

Description Usage Arguments Author(s) Examples

Description

Simulates current status data from a Cox-PH model with a gamma baseline distribution. Used for demonstration of use of logconcave function.

Usage

1
  simPH_Censored(n = 100, b1 = 0.5, b2 = -0.5, shape = 2)

Arguments

n

Number of samples simulated

b1

Value of first regression coefficient

b2

Value of second regression coefficient

shape

Shape parameter of baseline gamma distribution

Author(s)

Clifford Anderson-Bergman

Examples

1
2
3
4
5
  simData <- simPH_Censored()
  # Simulates censored data from a Cox-PH model
  
  fit <- logconcave(times = simData$times, covariates = simData$x)
  # Fits a Cox-PH model with a logconcave baseline distribution

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