newllk: Proportional hazards partial likelihood, using Breslow method...

View source: R/newllk.R

newllkR Documentation

Proportional hazards partial likelihood, using Breslow method for ties, excluding some observations.

Description

This function implements the approximate conditional inferential approach of \insertCitekz19;textualPHInfiniteEstimates to proportional hazards regression.

Usage

newllk(
  beta,
  fit,
  exclude = NULL,
  minus = FALSE,
  keeponly = NULL,
  justd0 = FALSE,
  cc1 = 0
)

Arguments

beta

parameter vector.

fit

Output from a Cox PH regression, with x=TRUE and y=TRUE

exclude

data set with stratum and patient number to exclude.

minus

logical flag to change sign of partial likelyhood

keeponly

variables to retain. Keep all if this is null or NA.

justd0

logical variable, indicating whether to calculate only the function value and skip derivatives.

cc1

Continuity correction for first component of the score.

Value

a list with components

  • d0 partial likelihood

  • d1 first derivative vector

  • d2 second derivative matrix

References

\insertRef

kz19PHInfiniteEstimates


PHInfiniteEstimates documentation built on Nov. 24, 2023, 9:06 a.m.