standardized_test_data {atable} | R Documentation |
A data.frame with standardized random data of various classes
Description
A data.frame intended for testing the atable function with standardized random data and missing values in various classes.
Usage
standardized_test_data
Format
A data frame with 1080 rows and 7 variables:
- Split1
A factor with 2 levels without
NA
. The two levels have the same frequency (540).- Split2
A factor with 2 levels with
NA
. The two levels and theNA
have the same frequency (360).- Group
A factor with 2 levels with
NA
. The two levels and theNA
have the same frequency (360).- Logical
A logical.
- Factor
A factor with 3 levels.
- Ordered
Class ordered with 4 levels.
- Numeric
Class numeric.
Details
For every subset defined by a triplet of the levels of Split1, Split2 and Group the variables have the following properties:
60 observations
Logical has exactly the same number of
TRUE
andFALSE
andNA
(20).Factor has exactly the same number of levels taken and
NA
(15).Ordered has exactly the same number of levels taken and
NA
(12).Numeric is sampled from a normal distribution and then standardized to
sd
1 and with 6NA
. Itsmean
is 12 whenGroup
is'Treatment'
and 10 otherwise (up to10^-17
).
Examples
atable::atable(Logical+ Numeric + Factor + Ordered ~ Group | Split1 + Split2,
atable::standardized_test_data, add_levels_for_NA = TRUE, format_to = 'Word')