Generates FACT-like questionnaire answers for fake respondents.
Character vector of the "Additional Concerns" item names.
An integer specifying how many fake respondents to generate. Default is 8.
Logical, if FALSE (the default) the 27 FACT-G items will be
generated in addition to items you supply to
The proportion of items with missing answers in the first half of respondents.
The proportion of items with missing answers in the second half of respondents.
This function is used to generate fake responses to FACT/FACIT
questionnaires. It is a utility to generate example data for testing the
functions and for demonstrating their usage. Missing item proportions can be
specified separately for the first and second half of respondents in the
generated data frame (using
AConly = FALSE, the default, then FACT-G items will automatically
be generated in addition to any "Additional Concerns" (AC) items given to
AConly = TRUE to generate only the AC items. If
namesAC = NULL (the default), then only FACT-G items will be
AConly = TRUE then at least 2 item names must be given to
A data frame with
N fake respondents (8 by default). The first half
of respondents will have missing values (coded as
9) for roughly 10%
of the items, and the last half will have missing values for roughly 50% of
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.