normal.sl: Calculate level of smallest HDR which contains the modified...

Description Usage Arguments Value Examples

View source: R/internal.R

Description

Used for internal functions in the study of generalized fragility indices.

Usage

1
normal.sl(y, y.mod)

Arguments

y

a numeric vector of outcomes

y.mod

a numeric vector of outcomes after the fragility index modification

Value

a scalar numeric: a ratio of the likilihoods in y and y.mod, estimated using the MLE with the data y

Examples

1
2
3
y <- rnorm(100, 0, 1)
y.mod <- rnorm(100,.1, 1.1) # should be returned from an FI procedure
FragilityTools:::normal.sl(y, y.mod)

brb225/FragilityTools documentation built on Jan. 21, 2022, 1:26 a.m.