powered by
Make data summarizing conditional effects
makeCEDf( labels = labels, data, yvar = "Y", total = FALSE, addvars = TRUE, maxylev = 6, mode = 1, rangemode = 2 )
Named list of variables
A data.frame
Label of the dependent variable. Either "Y"(default) or "M".
logical. If true, model include mediator variable.
logical. Whether or not add categorical variables to the data
maximal unique length of categorical variable
Numeric. One of 1:4. 1= simple indicator coding, 2= sequential coding, 3= Helmert coding, 4= effect coding
rangemode. 1 or 2.
labels=list(X="protest",W="sexism",M="respappr",Y="liking") data1=addCatVars(protest,varnames="protest",mode=1) makeCEDf(labels=labels,data=protest,mode=1)
Run the code above in your browser using DataLab