# data from Sherry (2006), using all variables
LINEARITY(data=data_DFA_Sherry, groups='Group',
variables=c('Neuroticism','Extroversion','Openness',
'Agreeableness','Conscientiousness') )
# \donttest{
# data from Sherry (2006), specifying independent variables and a dependent variable
LINEARITY(data=data_DFA_Sherry, groups='Group',
idvs=c('Neuroticism','Extroversion','Openness','Agreeableness'),
dv=c('Conscientiousness'),
verbose=TRUE )
# data that simulate those from De Leo & Wulfert (2013)
LINEARITY(data=data_CCA_De_Leo,
variables=c('Tobacco_Use','Alcohol_Use','Illicit_Drug_Use',
'Gambling_Behavior', 'Unprotected_Sex','CIAS_Total',
'Impulsivity','Social_Interaction_Anxiety','Depression',
'Social_Support','Intolerance_of_Deviance','Family_Morals',
'Family_Conflict','Grade_Point_Average'),
verbose=TRUE )
# }
Run the code above in your browser using DataLab