Rashnu is the Zoroastrian deity of truth and justice—the one who weighs souls on a golden scale.
This R package, developed by Zarathu, draws inspiration from Rashnu’s role as the divine judge to offer precision and fairness in sample size determination.
“Where truth is weighed, science begins.”
In clinical trials and research design, every decision matters.
Rashnu helps researchers define the right number of participants for: - Non-inferiority studies - Superiority comparisons (Lakatos method) - One-arm survival designs with transformation-based inference
This package brings clarity, rigor, and justice to your design process.
Installation
You can install the stable version of rashnu from CRAN with:
install.packages("rashnu")
To access the latest development version, install it from GitHub with:
# install.packages("pak")
pak::pak("zarathucorp/rashnu")
Example
Two sample survival non-inferiority
twoSurvSampleSizeNI(
syear = 12,
yrsurv1 = 0.5,
yrsurv2 = 0.5,
alloc = 1,
accrualTime = 24,
followTime = 24,
alpha = 0.025,
power = 0.8,
margin = 1.3
)
Two sample survival superiority
lakatosSampleSize(
syear = 12,
yrsurv1 = 0.3,
yrsurv2 = 0.5,
alloc = 1,
accrualTime = 24,
followTime = 24,
alpha = 0.05,
power = 0.8,
method = "logrank",
side = "two.sided"
)
One sample non-parametric survival
oneSurvSampleSize(
survTime = 12,
p1 = 0.3,
p2 = 0.4,
accrualTime = 24,
followTime = 24,
alpha = 0.05,
power = 0.8,
side = "two.sided",
method = "log-log"
)