Learn R Programming

ridittools (version 0.1)

seridits: Compute standard errors of mean ridits of multiple groups

Description

Takes the same data as meanridits(), bui returns standard errors rather than means.

Usage

seridits(x, margin, ref = NULL)

Arguments

x

same as for meanridits(), but must be counts rather than proportions

margin

same as for meanridits()

ref

same as for meanridits()

Value

a vector of standard errors for each group's mean ridits

Details

note that if the results include the reference group, its standard error will not be meaningful; by definition its mean ridit will be exactly 0.5

See Also

meanridits

Examples

Run this code
# NOT RUN {
(meanridits(semiauto, 2, 1) - 0.5) / seridits(semiauto, 2, 1)

## The function is currently defined as
function (x, margin, ref = NULL)
{
    apply(x, margin, se.ridit, riditsrefgroup(x, margin, ref))
  }
# }

Run the code above in your browser using DataLab