|
11 | 11 | "tags": []
|
12 | 12 | },
|
13 | 13 | "source": [
|
14 |
| - "# Advanced Regression Analysis With R\n", |
| 14 | + "# Mixed Effects Regression with R\n", |
15 | 15 | "\n",
|
16 | 16 | "## Course Description \n",
|
17 | 17 | "\n",
|
18 |
| - "This course builds on your existing knowledge of regression to fit more complex models that can handle more complicated data sets. In this session you will learn about different types of regression analysis, when to use them, and how to interpret the results.\n", |
| 18 | + "This course builds on your existing knowledge of regression to fit more complex models that can handle more complicated data sets. In this session you will learn about mixed effects regression model, when to use them, and how to interpret the results.\n", |
| 19 | + "\n", |
| 20 | + "While it is delivered as a stand alone session, it is designed as a part of a series of Regression with R workshops where the content develops the ideas further to give you a comprehensive understanding how regression can be used to address a broad range of questions. \n", |
| 21 | + "\n", |
| 22 | + "The complete series includes:\n", |
| 23 | + "\n", |
| 24 | + "1. Introduction to Regression with R\n", |
| 25 | + "2. Regression Analysis in R: Adapting to Varied Data Types\n", |
| 26 | + "3. Mixed Effects Regression with R\n", |
19 | 27 | "\n",
|
20 | 28 | "## Course Objectives \n",
|
21 |
| - "- Use regression answer to answer a wide range of research questions.\n", |
22 |
| - "- Learn to fit a regression model with interactions between predictor variables.\n", |
23 |
| - "- Learn to fit multi-level regression models.\n", |
24 |
| - "- Extract and summarise the results from a range of regression models.\n", |
25 |
| - "- Learn to design a regression model appropriate for the participant's specific research question.\n", |
| 29 | + "- Use regression answer to answer a wide range of research questions .\n", |
| 30 | + "- Fit a regression model with interactions between predictor variables.\n", |
| 31 | + "- Fit multi-level regression models\n", |
| 32 | + "- Extract and interpret the results from a range of regression models.\n", |
| 33 | + "- Design a regression model appropriate for addressing a specific research question.\n", |
26 | 34 | "\n",
|
27 | 35 | "## Pre-requisite Knowledge\n",
|
28 | 36 | "\n",
|
|
37 | 45 | "- Multiple linear regression with categorical, binary or continuous predictor variables.\n",
|
38 | 46 | "- Logistic regression.\n",
|
39 | 47 | "\n",
|
40 |
| - "If not, we recommend that you consult our pre-requisite course [Introductory Regression Analysis with R](regression_analysis_with_r.ipynb).\n", |
| 48 | + "If not, we recommend that you consult our pre-requisite courses [Introductory Regression Analysis with R](intro_regression_analysis_with_r.ipynb) and [Regression Analysis in R: Adapting to Varied Data Types](intermediate_regression_analysis_with_r.ipynb)\n", |
41 | 49 | "\n",
|
42 | 50 | "## Signup \n",
|
43 | 51 | "\n",
|
|
46 | 54 | },
|
47 | 55 | {
|
48 | 56 | "cell_type": "code",
|
49 |
| - "execution_count": 2, |
| 57 | + "execution_count": 1, |
50 | 58 | "id": "75289504-c41d-4a3c-902c-44f9f9208d0e",
|
51 | 59 | "metadata": {
|
52 | 60 | "editable": true,
|
|
76 | 84 | "\n",
|
77 | 85 | "\n",
|
78 | 86 | "# Define the course that is being looked at\n",
|
79 |
| - "course_name = \"Advanced Regression Analysis with R\"\n", |
| 87 | + "course_name = \"Mixed Effects Regression with R\"\n", |
80 | 88 | "\n",
|
81 | 89 | "# Load the CSV file\n",
|
82 | 90 | "file_path = '../data/workshop_info.csv' # Adjust the path to your file location\n",
|
|
124 | 132 | "## Installation Guide \n",
|
125 | 133 | "All CfRR courses require attendees to use their own computer/laptop to follow workshop activities and take effective notes. \n",
|
126 | 134 | "\n",
|
127 |
| - "As this course extends upon *Regression Analysis with R*, the installation instructions for this course are the same, available [here](advanced_regression_analysis_with_r.ipynb).\n", |
| 135 | + "As this course extends upon *Introduction to R*, the installation instructions for the base R elements are the same, available [here](intro_to_r.ipynb).\n", |
128 | 136 | "\n",
|
| 137 | + "Alongside having R itself, three packages are needed for this workshop. The first two (devtools & learnr) are available from CRAN. The third is a package we have developed with the course materials and is available from GitHub (cfrrRTutorials).\n", |
| 138 | + "\n", |
| 139 | + "This code will install these three packages.\n", |
| 140 | + "```\n", |
| 141 | + "install.packages(\"devtools\") \n", |
| 142 | + "install.packages(\"learnr\") \n", |
| 143 | + "library(devtools)\n", |
| 144 | + "devtools::install_github(\"coding-for-reproducible-research/cfrrRtutorials\")\n", |
| 145 | + "```\n", |
| 146 | + "\n", |
| 147 | + "If you encounter any difficulties with installation, please reach out.\n", |
129 | 148 | "\n",
|
130 | 149 | "## Self Study Material Link \n",
|
131 | 150 | "\n",
|
132 |
| - "The self-study material for this course is available [here](../individual_modules/section_landing_pages/advanced_regression_analysis_with_R.md).\n", |
| 151 | + "The self-study material for this course is available as a tutorial through the cfrrRtutorials R package installed as part of the set up for this workshop. To launch the \"Mixed Effects Regression with R\" tutorial in Rstudio you can run:\n", |
| 152 | + "\n", |
| 153 | + "```\n", |
| 154 | + "learnr::run_tutorial(\"Mixed Effects Regression with R\", \"cfrrRtutorials\")\n", |
| 155 | + "```\n", |
| 156 | + "\n", |
| 157 | + "When ready the tutorial may launch in a new window, or (more likely) there will be some output in red in the **Jobs** console that says something like: \n", |
| 158 | + "\n", |
| 159 | + "```\n", |
| 160 | + "Output created: Mixed-Effects-Regression-with-R.html\n", |
| 161 | + "\n", |
| 162 | + "Listening on http://127.0.0.1:38555\n", |
| 163 | + "\n", |
| 164 | + "+------------------------------------------------------------------------+\n", |
| 165 | + "<U+2713> Open the tutorial in your browser: http://127.0.0.1:38555\n", |
| 166 | + "! Stop or cancel this job to stop running the tutorial\n", |
| 167 | + "+------------------------------------------------------------------------+\n", |
| 168 | + "```\n", |
| 169 | + "\n", |
| 170 | + "If the tutorial does not automatically launch in a new window, to launch it copy the web address in this case (http://127.0.0.1:38555) into a web browser of your choice, such as Chrome. \n", |
| 171 | + "\n", |
| 172 | + "You can then start the workshop in this document. You can navigate through the sections using the menu on the side. Please note that the data required for the examples and exercises is preloaded within each interactive document, so the commands/exercises only work within it. They won't work with the Rstudio console. When you come to apply what you have learned on your own datasets, you will need to ensure your data is loaded and edit the syntax to model the relevant variables. \n", |
| 173 | + "\n", |
| 174 | + "\n", |
133 | 175 | "\n",
|
134 | 176 | "\n",
|
135 | 177 | "## Developers\n",
|
|
141 | 183 | },
|
142 | 184 | {
|
143 | 185 | "cell_type": "code",
|
144 |
| - "execution_count": 1, |
| 186 | + "execution_count": 2, |
145 | 187 | "id": "0e4d8ca2-1b94-4759-90de-9e1917fb12f3",
|
146 | 188 | "metadata": {
|
147 | 189 | "editable": true,
|
|
0 commit comments