descriptive.table: Table of Descriptives

Description Usage Arguments Details Value Author(s)

Description

Extends the descriptive.table function in package Deducer to facilitate HTML output.

Usage

1
descriptive.table(vars, strata, data, func.names = c("Mean", "St. Deviation", "Median", "25th Percentile", "75th Percentile", "Minimum", "Maximum", "Skew", "Kurtosis", "Valid N"), func.additional)

Arguments

vars

A variable or data.frame containing variables on which to run descriptive statistics.

strata

A variable or data.frame containing variables on which to stratify

data

The data frame in which vars is evaluated

func.names

A character vector of built-in statistics

func.additional

A named list of functions. Each function should take a numeric vector as its argument, and return a single value

Details

Over-rides the descriptive.table function in Deducer to produce HTML tables. Warnings are captured using withConditions and printed at the bottom of the table. Tables are formatted differently depending upon whether any variables are selected as strata. If no variables are selected as strata, all the variables selected for descriptive statistics are presented in a single table. Otherwise, one table is used for each variable, with the levels of the strata variables presented in the leftmost columns.

Value

Returns the HTML code to render HTML-formatted tables showing descriptive statistics for one set of variables stratified by another set of variables.

Author(s)

Bill Altermatt


DeducerRichOutput documentation built on May 2, 2019, 4:53 p.m.