M_index_from_B_index: Calculate the M index from the B index and relevant data.

View source: R/M_Index_from_B_Index.R

M_index_from_B_indexR Documentation

Calculate the M index from the B index and relevant data.

Description

Calculate the M index from the B index and relevant data.

Usage

M_index_from_B_index(B, R, N, t = rep(1/N, N), Samples = 1000)

Arguments

B

The B index value estimated from a dataset.

R

Total number of RS events in the sample from which B was estimated.

N

Total number of individuals in the sample from which B was estimated.

t

Assumption of the exposure time vector to be used in the correction term.

Samples

Number of samples used to estimate the expected value of the correction term.

Value

The M index.

Examples

set.seed(1)
B = 0.1 
R = 50
N = 10
M_index_from_B_index(B, R, N)

Ctross/SkewCalc documentation built on March 17, 2024, 2:04 p.m.