meechua_eff.CI: Calculates and plots treatment and regression effects as also...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/meechua_eff.CI.R

Description

This function calculates and plots treatment and regression effects of both before and after measures as also its p-values.

Usage

1
meechua_eff.CI(x,n,se.after)

Arguments

x

a data frame containing the results from meechua_reg. It is stored as mod_coef.

n

the original sample size (number of observations) from data.

se.after

the estimated standard error from meechua_reg. It is stored as se.after.

Details

After performing the meechua_reg the model coefficients mod_coef as also its global variable se.after are used as input in this function to estimate treatment and regression effects.

Value

Two plots are performed, the first "Treatment Effect and p-value" and the second "Confidence Intervals" for mu.

Author(s)

Daniela R. Recchia, Thomas Ostermann

References

Ostermann, T., Willich, Stefan N. & Luedtke, Rainer. (2008). Regression toward the mean - a detection method for unknown population mean based on Mee and Chua's algorithm. BMC Medical Research Methodology.

See Also

meechua_reg

Examples

1
2
3
4
5
# First perform replicate_data and meechua_reg
replicate_data(language_test,50,60,"Before","After",data=language_test)
mee_chua_sort <- mee_chua[with(mee_chua,order(mu)),]
meechua_reg(mee_chua_sort)
meechua_eff.CI(mod_coef,8,se_after)

regtomean documentation built on Jan. 29, 2021, 5:14 p.m.