Description Usage Arguments Examples
View source: R/addModelContent.R
Add Model Content
1 | addModelContent(setName, setContent, setNameAttribute, list)
|
setName |
Choose the global environment name for setContent; also the name attribute for setContent as a new element of the list (e.g., the name of a subset of outcomes or predictors) |
setContent |
Vectors of additional content (e.g. a vector of predictor or outcome variables) |
setNameAttribute |
Vector for names attribute; goes with the elements of setContent (e.g. individual full names of predictors; can make non-syntactic and thus "pretty" for output) |
list |
The name of list to which setContent will be appended; function will initialize it if not already in global environment |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | addModelContent(setName = 'drinking_outcomes',
list = 'outcomesList',
setContent = c('MAXDRINKS', 'DRINKFREQ', 'USUALAMT', 'BINGE', 'INTOX'),
setNameAttribute = c('Maximum Drinks', 'Drinking Frequency', 'Usual Amount', 'Binge Frequency', 'Intoxication Frequency'))
addModelContent(setName = 'sf12_outcomes',
list = 'outcomesList',
setContent = c('gh', 'calm', 'depressed', 'accomplishedless', 'carefulless'),
setNameAttribute = c('General Health', 'Calm/Peaceful', 'Down/Depressed', 'Less Accomplished', 'Less Careful'))
addModelContent(setName = 'Dysphoria',
list = 'modelContentsList',
setContent = c('INTRUSIONS', 'AVOIDANCE', 'DYSPHORIA', 'HYPERAROUSAL'),
setNameAttribute = c('Intrusions', 'Avoidance', 'Dysphoria', 'Hyperarousal'))
addModelContent(setName = 'Dysphoric_Arousal',
list = 'modelContentsList',
setContent = c('INTRUSIONS', 'AVOIDANCE', 'DYSPHORIA', 'DYSPHORIC_AROUSAL', 'ANXIOUS_AROUSAL'),
setNameAttribute = c('Intrusions', 'Avoidance', 'Dysphoria', 'Dysphoric Arousal', 'Anxious Arousal'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.