getYhat1 | R Documentation |
Get Yhat value from simple mediation
getYhat1( data, X = NULL, M = NULL, Y = NULL, labels, digits = 3, maxylev = 6, mode = 1 )
data |
A data.frame |
X |
Name of independent variable |
M |
Name of moderator variable |
Y |
Name of dependant variable |
labels |
optional list of labels |
digits |
Integer indicating the number of decimal places |
maxylev |
maximal unique length of categorical variable |
mode |
Numeric. One of 1:4. 1= simple indicator coding, 2= sequential coding, 3= Helmert coding, 4= effect coding |
data=protest labels=list(X="protest",M="respappr",Y="liking") getYhat1(data=protest,labels=labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.