tableby and paired

tableby()

Summary Statistics of a Set of Independent Variables by a Categorical Variable

paired()

Summary Statistics of a Set of Independent Variables Paired Across Two Timepoints

tableby.control()

Control settings for tableby function

paired.control()

Control settings for paired function

arsenal_sum() arsenal_min() arsenal_max() arsenal_mean() arsenal_sd() arsenal_var() meansd() meanse() meanCI() medianrange() medianmad() arsenal_median() arsenal_range() gmean() gsd() gmeansd() gmeanCI() Nsigntest() Nevents() medSurv() NeventsSurv() NriskSurv() Nrisk() medTime() q1q3() medianq1q3() iqr() Nmiss() Nmiss2() N() Npct() count() countpct() pct() countN() countrowpct() rowpct() countcellpct() binomCI() rowbinomCI()

tableby Summary Statistics Functions

as.tbstat() as.countpct() as.tbstat_multirow()

Internal tableby functions

summary(<tableby>) as.data.frame(<summary.tableby>)

The summary method for a tableby object

as.data.frame(<tableby>)

as.data.frame.tableby

is.tableby() is.summary.tableby() modpval.tableby() tests() na.tableby() xtfrm(<tableby>) sort(<tableby>) Ops(<tableby>) head(<tableby>) tail(<tableby>)

Helper functions for tableby

na.paired()

Helper functions for paired

modelsum

modelsum()

Fit models over each of a set of independent variables with a response variable

modelsum.control()

Control settings for modelsum function

survival() ordinal() negbin() clog() relrisk()

Family functions for modelsum

summary(<modelsum>) as.data.frame(<summary.modelsum>)

Summarize a modelsum object.

as.data.frame(<modelsum>)

as.data.frame.modelsum

is.modelsum() is.summary.modelsum() na.modelsum()

Helper functions for modelsum

freqlist

freqlist()

freqlist

freq.control()

Control settings for freqlist function

as.data.frame(<freqlist>)

as.data.frame.freqlist

summary(<freqlist>) as.data.frame(<summary.freqlist>)

summary.freqlist

is.freqlist() is.summary.freqlist() head(<summary.freqlist>) tail(<summary.freqlist>) sort(<freqlist>)

Helper functions for freqlist

comparedf

comparedf() print(<comparedf>)

Compare two data.frames and report differences

comparedf.control()

Control settings for comparedf function

tol.NA() tol.num.absolute() tol.num.percent() tol.num.pct() tol.factor.none() tol.factor.levels() tol.factor.labels() tol.char.both() tol.char.case() tol.char.trim() tol.char.none() tol.date.absolute() tol.logical.none() tol.other.none()

comparedf tolerances

summary(<comparedf>) print(<summary.comparedf>)

The summary method for a comparedf object

n.diff.obs() n.diffs() diffs()

Extract differences

write2

write2()

write2

verbatim() code.chunk()

Helper functions for write2

write2word() write2pdf() write2html()

write2word, write2html, write2pdf

yaml() print(<yaml>) c(<yaml>) is.yaml()

Include a YAML header in write2

Regarding labels

labels(<data.frame>) labels(<keep_labels>) `labels<-`() set_labels() set_attr()

Labels

keep.labels() `[`(<keep_labels>) `[<-`(<keep_labels>) loosen.labels()

Keep Labels

Other utilities

formulize()

formulize

`%nin%`

Not in

allNA() includeNA()

Some functions to handle NAs

mdy.Date() Date.mdy() is.Date()

Convert numeric dates to Date object, and vice versa

padjust()

Adjust P-values for Multiple Comparisons

smart.split() replace2()

Internal Functions

selectall() as.selectall() as.matrix(<selectall>) `[`(<selectall>) is.na(<selectall>) is.selectall()

Make a column for "select all" input

Common arsenal table structure

has_strata() `[`(<arsenal_table>) `[`(<tableby>) labels(<arsenal_table>) `labels<-`(<arsenal_table>) print(<arsenal_table>) merge(<arsenal_table>) merge(<freqlist>) print(<summary.arsenal_table>)

arsenal tables with common structure

Other reference

mockstudy muck_up_mockstudy()

Mock study data for examples

arsenal

An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

arsenal-deprecated

Deprecated functions in arsenal

arsenal-defunct

Defunct functions in arsenal