From the course: Healthcare Analytics: Regression in R

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Looking at the final model

Looking at the final model - R Tutorial

From the course: Healthcare Analytics: Regression in R

Start my 1-month free trial

Looking at the final model

- [Instructor] Now that we have our final model, let's take a good look at it and make sure we understand it. For this movie, we will clean up our final model and output it as a CVS using tidy model, then we will run a coefficient plot which will plot our coefficients. Sometimes a plot is easier to understand than a bunch of numbers. Next we will revisit out assumptions we studied before when we did diagnostic plots about sleep duration before model. These plots can help us decide if we have a good final model. I'll also show you another command you can use to get final model diagnostics using words rather than pictures. Okay, this is the model we are going to report. So we need to clean it up a bit and make it presentable. See the section called FINAL MODEL? That's where I'm doing that. First I'll redo the equation, it's the same equation but I put the variables in the same order as they appear in table one. Remember, h came first, and then we had sex in table one, but it didn't fit…

Contents