percent.ttests: Many hypothesis tests for two means of percentages

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

View source: R/ttest_related_functions.R

Description

Many hypothesis tests for two means of percentages.

Usage

1
percent.ttests(x, y, logged = FALSE)

Arguments

x

A numericalmatrix with the percentages of the first sample. Any value between 0 and 1 (inclusive) is allowed.

y

A numerical matrix with the percentages of the first sample. Any value between 0 and 1 (inclusive) is allowed.

logged

Should the p-values be returned (FALSE) or their logarithm (TRUE)?

Details

This is the prop.reg but with a single categorical predictor which has two levels only. It is like a t-test for the means of two samples haivng percentages.

Value

A matrix with three columns, the phi parameter, the test statistic and its associated p-value.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.

References

Papke L. E. & Wooldridge J. (1996). Econometric methods for fractional response variables with an application to 401(K) plan participation rates. Journal of Applied Econometrics, 11(6): 619-632.

McCullagh, Peter, and John A. Nelder. Generalized linear models. CRC press, USA, 2nd edition, 1989.

See Also

link{percent.ttest}, prop.reg, ttest2, ftest

Examples

1
2
3
x <- matrix( rbeta(100 * 10, 3, 1), ncol = 10)
y <- matrix( rbeta(50 * 10, 7.5, 2.5), ncol = 10)
res<-percent.ttests(x, y)

Rfast documentation built on Dec. 11, 2021, 9:59 a.m.