Description Usage Arguments Examples
(limited) Emulation of SAS proc_freq
1 | proc_freq(x, weight, tables)
|
x |
A data.frame, data.table, or matrix containg data. Tables will be generated with variables in the order that the data is coded. Data should be in long format (see Hawkeye data) |
weight |
The variable/column name in x the represents the frequency or count, as a length one character vector, i.e., "Freq" |
tables |
This is similar to the 'TABLES' argument in SAS. This should also be a length one character vector. At a minimum, this should contain two variables from x that we are interested in tabulating, joined with an '*'. Similar to SAS code, we can request a number of tables and options, including Measures, RelRisk, ChiSq, CellChi2, Exact, and CMH1. This argument should be of this form: tables = "var1*var2 / table1 option1 table2 table3" |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.