grouped_data {exams.forge}R Documentation

Central Tendency Measures' Computation of Grouped Data

Description

Computes mean, mode or quantile/median of grouped data.

Usage

grouped_data(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)

grouped_stats(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)

dgrouped(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)

Arguments

x

numeric: borders

n

numeric: absolute frequencies for each group

compute

numeric/character: coefficient to compute

tol

numeric: tolerance for numerical comparison

Value

A list with the class, result and a table.

Examples

x <- 1:4
n <- ddiscrete(runif(3))
grouped_data(x, n)

[Package exams.forge version 1.0.10 Index]