fitting and interpreting models

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

how to write a linear regression model

linear_reg()

2
New cards

how to set model fitting engine to linear model

set_engine(“lm”)

3
New cards

formula syntax in R

  • predates tidyverse

  • provide formula then the data

4
New cards

std.error

uncertainty around estimates

5
New cards

slope interpretation structure

for each additional [explanatory variable + unit], the [response variable] is expected to be higher, on average, by [slope + unit]

6
New cards

least squares regression

  • regression line minimizes the sum of squared residuals

  • squared → get rid of neg so they don’t add up to 0 & more weight to residuals that are bigger

  • goes thru center of mass point

7
New cards

center of mass point

  • average of Xs

  • average of Ys

8
New cards

correlation coefficient

measures the strength of the linear association two numerical variables

<p>measures the strength of the linear association two numerical variables</p>
9
New cards

dummy variable

  • encoded when categorical explanatory variable has many levels

  • each coefficient describes the expected difference btwn heights in that particular level compared to baseline