code? Flashcards
emmeans
provides the estimated means for each group
lm()
calculates a linear model
DV ~ IV, data =
multiple predictors are separated by +
slice()
shows a specified section of the data set
e.g. rows 1 - 6 when specify (1:6)
summary()
provides a summary output of the model
provides values for coefficients, r^2, f tests , degrees of freedom
round()
rounds values to a specified number of decimal places
confint()
provides the confidence intervals of the model
z_score()
standardises coefficients
tab_model
formatted full results table
head
shows the top rows of the dataset
t.test()
does a t-test
contrasts()
used when dummy coding the data when you have a factor variable in the model
selects the first group as the baseline
contr.treatment()
specifies dummy coding
in dummy coding in r, what does base =
the level number of the baseline you want (e.g. 2)
how do you specify interactions in R
asterisk or :
which of these - (*), (:), (+), (+ and *) does not specify full model results?
:
scale = F is used to do what?
mean centre
scale(variable name, scale = F)
probe_interactions
simple slopes
only works for catetgorical * continuous interactions and continuous * continuous predictors
cat_plot()
visualises categorical interactions
geom_smooth(method = loeess)
adds a loess line to plot
crPlots()
component-residual plots
for multiple predictors
also known as partial residual plots
hist()
histograms
plots frequency distribution of residuals
residualPlot()
plots residuals vs predicted values
rstudent()
studentised residuals excluding case outlier in diagnostics
rstandard()
standardised residuals including case outlier in diagnostics