1/31
Looks like no tags are added yet.
How do you calculate standard error in R?
sd(x) / sqrt(length(x))
How is an interval calculated?
Estimate ± multiplier × SE.
What function runs a one-sample t-test?
t.test(x, mu = )
What does mu specify?
The hypothesized population mean.
What function compares two group means?
t.test(dv ~ iv, data = )
What function tests proportions?
prop.test()
What should you find in test output?
Estimate, t-statistic, p-value, and confidence interval.
What function calculates correlation?
cor()
What does cor() measure?
The direction and strength of a linear relationship.
What function runs a bivariate regression?
lm(y ~ x, data = )
What function displays regression results?
summary()
What does Estimate show in summary()?
The estimated coefficient.
What does Std. Error show?
The standard error of the coefficient.
What does t value show?
The t-statistic.
What does Pr(>|t|) show?
The p-value.
What does R-squared show?
The proportion of variation explained.
What function generates predictions?
predict()
How do you run multiple regression?
lm(y ~ x + z)
How do you include an interaction?
lm(y ~ x * z)
What does the interaction coefficient show?
How the effect of one predictor depends on the other.
How do you include factor variables?
Use factor(variable).
What function creates regression tables?
modelsummary()
What can modelsummary() tables include?
Estimates, confidence intervals, n, R², and adjusted R².
How do you create a residual-versus-fitted plot?
plot(model, which = 1)
What function creates a residual table?
augment()
What does .fitted show?
Predicted values.
What does .resid show?
Residuals.
What does .cooksd show?
Cook's distance.
How do you run logistic regression?
glm(y ~ x, family = binomial)
What does a logistic regression coefficient represent?
Change in log odds.
What function calculates predicted values or probabilities?
predictions()
What function plots predicted outcomes?
plot_predictions()