Learn R Programming

asremlPlus (version 4.4.46)

angular.mod: Applies the modified angular transformation to a vector of counts.

Description

Applies the angular transformation to a vector of counts. A modified transformation is used that is appropriate when N < 50 and the proportion is not between 0.3 and 0.7. The transformation is given by \(\sin^{-1}{\frac{count + 0.375}{n + 0.75}}\).

Usage

angular.mod(count, n)

Value

A numeric vector.

Arguments

count

The numeric vector of counts.

n

The number(s) of observations from which the count(s) were obtained.

Author

Chris Brien

See Also

angular, powerTransform.

Examples

Run this code
n <-25
y <- rbinom(10, n, 0.5)
y <- c(y,0,n)
p.ang.mod <- angular.mod(y, n)

Run the code above in your browser using DataLab