Learn R Programming

inference (version 0.1.0)

transform.inference: Transformation of point estimates

Description

transform method for class inference

Usage

transform.inference(`_data`, f, f.prime, ...)

Arguments

_data
Object of class inference.
f
Function to transform the point estimates and confidence intervals; e.g., exp.
f.prime
Derivative of f in order to compute the standard error of the transformed point estimates based on the delta method.
...
Nothing.

Value

inference.

Details

Transform the point estimates, confidence intervals, and standard errors based on the delta method. This builds on the S3 generic function transform from the base package.

It can be used to get the hazard ratio scale in inference objects created from coxph objects and the odds ratio scale from logistic regression created from glm (both using f=exp, f.prime=exp).