chi2n: Balance test for sample size between treatments

Description Usage Arguments Value

View source: R/chi2n.r

Description

This function implements chi-squared test for the null hypothesis that sample size across treatments is equal.

Usage

1
chi2n(d, data)

Arguments

d

a formula object whose right hand side is treatment variable (~ d)

data

an object whose class is data.frame

Value

this function returns a matrix including sample size in each treatment and p-value of chi-squared test. This matrix has RCT and nbalance classes.


KatoPachi/Rkato documentation built on Dec. 18, 2021, 2:42 a.m.