View source: R/LikelihoodApproximation.R
computeConfidenceInterval | R Documentation |
Compute the point estimate and confidence interval given a likelihood function approximation
computeConfidenceInterval(approximation, alpha = 0.05)
approximation |
An approximation of the likelihood function as fitted using the
|
alpha |
The alpha (expected type I error). |
Compute the point estimate and confidence interval given a likelihood function approximation.
A data frame containing the point estimate, and upper and lower bound of the confidence interval.
# Simulate some data for this example:
populations <- simulatePopulations()
cyclopsData <- Cyclops::createCyclopsData(Surv(time, y) ~ x + strata(stratumId),
data = populations[[1]],
modelType = "cox"
)
cyclopsFit <- Cyclops::fitCyclopsModel(cyclopsData)
approximation <- approximateLikelihood(cyclopsFit, "x")
computeConfidenceInterval(approximation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.