codebook.syn | R Documentation |
Describes features of variables in a data frame relevant for synthesis.
codebook.syn(data, maxlevs = 3)
data |
a data frame with a data set to be synthesised. |
maxlevs |
the number of factor levels above which separate tables with
all labels are returned as part of |
A list with two components.
tab
- a data frame with the following information about each variable:
name |
variable name |
class |
class of variable |
nmiss |
number of missing values ( |
perctmiss |
percentage of missing values |
ndistinct |
number of distinct values (excluding missing values) |
details |
range for numeric variables, maximum length for character variables, labels for factors with <= maxlevs levels |
labs
- a list of extra tables with labels for each factor with number
of levels greater than maxlevs
.
codebook.syn(SD2011)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.