R functions for Exam 3 Flashcards
cor ( )
this function computes the correlation of two variables.
pf ( )
computes cumulative probabilites from F distributions
qf ( )
computes quantiles for F distributions. The input you give is a probability
lm ( )
is used to get regression coefficients. in lm (variable1 -variable2 + variable 3) variable 1 is the outcome variable 2 and 3 are predictors
summary ( ) of a regression
a set of statistics for hypothesis tests for that regression. First you get everything related to testing the reliability of each regression coefficient, including the name of the predictor that coefficient is for, the value of the coefficient in the sample, the coefficient’s standard error, that t value (which is the coefficient divided by its standard error) and the two tailed p value.
anova
If you input the model for ANOVA – from lm () to the anova ( ) funciton, you get a set of statistics for hypothesis tests for the ANOVA.