heinzeschemper: Simulate operating characteristics of repaired Cox regression...

Description Usage Arguments Value

View source: R/heinzeschemper.R

Description

This function is intended to verify the operating characteristics of the approximate conditional inferential approach of \insertCitekz19;textualPHInfiniteEstimates to proportional hazards regression. An exponential regression model, corresponding to the proportional hazards regression model, is fit to the data, and new data sets are simulated from this model. P-values are calculated for these new data sets, and their empirical distribution is compared to the theoretical uniform distribution.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
heinzeschemper(
  nobs = 50,
  k = 5,
  B = 1,
  c = 0,
  nsamp = 1000,
  beta = NULL,
  add = NULL,
  half = NULL,
  verbose = FALSE
)

Arguments

nobs

number of observations in simulated data set.

k

number of covariates in simulated data set. Each covariate is dochotomous.

B

odds of 1 vs. 0 in dichotomous variables.

c

censoring proportion.

nsamp

number of samples.

beta

regression parameters, all zeros if null, and all the same value if a scalar.

add

partial simulation results to be added to, or NULL if de novo.

half

does nothing; provided for compatabilitity with simcode.

verbose

Triggers verbose messages.

Value

a list with components


PHInfiniteEstimates documentation built on July 24, 2021, 1:07 a.m.