ttest_rct: t-test across multiple treatment status

Description Usage Arguments Value

View source: R/ttest_rct.r

Description

This function picks baseline group from multiple treatment groups, and implements t-test between the baseline group and each treatment group.

Usage

1

Arguments

y

a formula object whose left hand side is outcome (y ~ .).

d

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

base

a string or numeric value of the baseline group.

data

an object whose class is data.frame

Value

A matrix including mean and its standard error of outcome in each treatment and p-value of t-test. This object has RCT and ttest class.


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