Description Usage Arguments Value Author(s) References See Also Examples
epiorder
Rearrange order of factor variable to produce classical epi table
1/0 Yes/No +/-
1 |
var |
Variable to reorder (will be converted as factor). |
mode |
Label plan for the new factor variable "yesno" for Yes, No "10" for 1, 0 "+-" for +,- "truefalse" for TRUE, FALSE or any set of two labels on the form c("A","B") |
levels |
Custom set of levels as vector : c(1,0) This levels will replaced by the lables then levels and labels should have the same length and the same order |
update |
if TRUE (the default) Then the original dataset is updated with new value The recoded column is replaced by the returned value With this option, there is no need to reassign the retruned value, but original data are lost. |
reverse |
if TRUE labels are reordered to better fit epidemiological tables with 1 before 0 , Yes before No etc... Other type of label are not changed, existing factor are not changed |
A vector reordered Can be nested as in freq(epioredr(case))
Gilles Desve
Based on: Epi6 and Stata functionnality, available at https://github.com/.
epitable
for cross tabulation
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.