Learn R Programming

powerprior (version 1.0.0)

effective_sample_size: Calculate Effective Sample Size

Description

Computes the effective sample size from historical data given a discounting parameter.

Usage

effective_sample_size(m, a0)

Value

Effective sample size (numeric)

Arguments

m

Sample size of historical data

a0

Discounting parameter

Examples

Run this code
# With 100 historical observations and 50% discounting
effective_sample_size(100, a0 = 0.5)  # Returns 50

Run the code above in your browser using DataLab