Get confidence intervals of time-varying coefficients from a fitted coxtv or coxtp object.

# S3 method for coxtp
confint(object, parm, level = 0.95, time, ...)

# S3 method for coxtv
confint(object, parm, level = 0.95, time, ...)

Arguments

object

fitted "coxtv" model.

parm

the names of parameters.

level

the confidence level. The default value is 0.95.

time

the time points for which the confidence intervals to be estimated. The default value is the unique observed event times in the dataset fitting the time-varying effects model.

...

other parameters to function

Examples

if (FALSE) {
data(ExampleData)
z <- ExampleData$z
time <- ExampleData$time
event <- ExampleData$event
fit <- coxtp(event = event, z = z, time = time)
IC  <- IC(fit)
confint(IC$model.mAIC)
}

if (FALSE) {
data(ExampleData)
z <- ExampleData$z
time <- ExampleData$time
event <- ExampleData$event
fit <- coxtv(event = event, z = z, time = time)
confint(fit)
}