# NOT RUN {
# data from Sherry (2006), using all variables
linearity(data=data_DFA_Sherry, groups='Group',
variables=c('Neuroticism','Extroversion','Openness',
'Agreeableness','Conscientiousness') )
# }
# NOT RUN {
# 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 )
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab