Learn R Programming

fastrerandomize (version 0.3)

randomization_test_R: Base R randomization test: difference in means + optional fiducial interval

Description

Base R randomization test: difference in means + optional fiducial interval

Usage

randomization_test_R(obsW, obsY, allW, findFI = FALSE, alpha = 0.05)

Value

A list with p_value, tau_obs, and (optionally) FI if `findFI=TRUE`.

Arguments

obsW

Observed assignment (0/1).

obsY

Observed outcome vector.

allW

Matrix of candidate random assignments (rows = assignments).

findFI

Logical, whether to compute fiducial interval as well.

alpha

Significance level (default 0.05).