Learn R Programming

esvis (version 0.2.0)

probs: Compute probabilities from the empirical CDFs of a grouping variable for each group.

Description

This formula returns the paired probabilities for any

Usage

probs(formula, data, center = FALSE)

Arguments

formula

A formula of the type out ~ group where out is the outcome variable and group is the grouping variable. Note this variable can include any arbitrary number of groups.

data

The data frame that the data in the formula come from.

center

Logical. Should the functions be centered prior to plotting?

Value

A matrix of probabilities with separate columns for each group and rownames corresponding to the value the paired probabilities are calculated from.

Examples

Run this code
# NOT RUN {
probs(math ~ condition, star)
# }

Run the code above in your browser using DataLab