eff_at_dose: Get the number of efficacy events seen at the doses under...

View source: R/eff_at_dose.R

eff_at_doseR Documentation

Get the number of efficacy events seen at the doses under investigation.

Description

Get the number of efficacy events seen at the doses under investigation.

Usage

eff_at_dose(x, dose, ...)

## S3 method for class 'efftox_fit'
eff_at_dose(x, dose = NULL, ...)

Arguments

x

An R object of class "dose_finding_fit"

dose

Optional integer, at which dose-level? Omit to get data on all doses.

...

arguments passed to other methods

Value

integer vector

Examples

## Not run: 
# EffTox example
x <- stan_efftox_demo(outcome_str = '1N 2E')
eff_at_dose(fit)            # c(0, 1, 0, 0)
eff_at_dose(fit, dose = 2)  # 1
eff_at_dose(fit, dose = 3)  # 0

## End(Not run)

trialr documentation built on April 1, 2023, 12:03 a.m.