Learn R Programming

SelfControlledCaseSeries (version 6.0.0)

computePreExposureGainP: Compute P for pre-exposure risk gain

Description

This function is deprecated. Use computePreExposureGain() instead.

Usage

computePreExposureGainP(sccsData, studyPopulation, exposureEraId = NULL)

Value

A one-sided p-value for whether the rate before exposure is higher than after, against the null of no change.#'

Arguments

sccsData

An object of type SccsData as created using the getDbSccsData function.

studyPopulation

An object created using the createStudyPopulation() function.

exposureEraId

The exposure to create the era data for. If not specified it is assumed to be the one exposure for which the data was loaded from the database.