Skip to content

Commit cc6ce5a

Browse files
Merge pull request #176 from coding-for-reproducible-research/64-separate-two-r-regression-courses-into-three-courses
64 separate two r regression courses into three courses
2 parents 1a9d78f + 9e9c496 commit cc6ce5a

7 files changed

+428
-29
lines changed

_static/workshops_network_python_ds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h1></h1>
282282

283283

284284
// parsing and collecting nodes and edges from the python
285-
nodes = new vis.DataSet([{"color": "#FFD700", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#FFD700", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#FFD700", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to Version Control with Git and GitHub"}, {"color": "#FFD700", "id": "Introduction to Python", "label": "Introduction to Python", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Python\nCourse Pre-reqs: None\nSubsequent Courses: Python for Data Analysis "}, {"color": "#FFD700", "id": "Python for Data Analysis ", "label": "Python for Data Analysis ", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Python for Data Analysis \nCourse Pre-reqs: Introduction to Python\nSubsequent Courses: None"}]);
285+
nodes = new vis.DataSet([{"color": "#FF6347", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#FF6347", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to Version Control with Git and GitHub"}, {"color": "#FF6347", "id": "Introduction to Python", "label": "Introduction to Python", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Python\nCourse Pre-reqs: None\nSubsequent Courses: Python for Data Analysis "}, {"color": "#FF6347", "id": "Python for Data Analysis ", "label": "Python for Data Analysis ", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Python for Data Analysis \nCourse Pre-reqs: Introduction to Python\nSubsequent Courses: None"}]);
286286
edges = new vis.DataSet([{"arrows": "to", "from": "Introduction to Version Control with Git and GitHub", "to": "Intermediate Version Control", "width": 1}, {"arrows": "to", "from": "Introduction to Unix", "to": "Introduction to Version Control with Git and GitHub", "width": 1}, {"arrows": "to", "from": "Introduction to Python", "to": "Python for Data Analysis ", "width": 1}]);
287287

288288
nodeColors = {};

_static/workshops_network_r_ds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h1></h1>
282282

283283

284284
// parsing and collecting nodes and edges from the python
285-
nodes = new vis.DataSet([{"color": "#FF6347", "id": "Introduction to R", "label": "Introduction to R", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to R\nCourse Pre-reqs: None\nSubsequent Courses: Regression analysis with R, Working With Data In R"}, {"color": "#FF6347", "id": "Regression analysis with R", "label": "Regression analysis with R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Regression analysis with R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: Advanced Regression Analysis With R "}, {"color": "#FF6347", "id": "Working With Data In R", "label": "Working With Data In R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Working With Data In R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Advanced Regression Analysis With R ", "label": "Advanced Regression Analysis With R ", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Advanced Regression Analysis With R \nCourse Pre-reqs: Regression analysis with R\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#FF6347", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to Version Control with Git and GitHub"}]);
285+
nodes = new vis.DataSet([{"color": "#FFD700", "id": "Introduction to R", "label": "Introduction to R", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to R\nCourse Pre-reqs: None\nSubsequent Courses: Regression analysis with R, Working With Data In R"}, {"color": "#FFD700", "id": "Regression analysis with R", "label": "Regression analysis with R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Regression analysis with R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: Advanced Regression Analysis With R "}, {"color": "#FFD700", "id": "Working With Data In R", "label": "Working With Data In R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Working With Data In R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: None"}, {"color": "#FFD700", "id": "Advanced Regression Analysis With R ", "label": "Advanced Regression Analysis With R ", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Advanced Regression Analysis With R \nCourse Pre-reqs: Regression analysis with R\nSubsequent Courses: None"}, {"color": "#FFD700", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#FFD700", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#FFD700", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to Version Control with Git and GitHub"}]);
286286
edges = new vis.DataSet([{"arrows": "to", "from": "Introduction to R", "to": "Regression analysis with R", "width": 1}, {"arrows": "to", "from": "Introduction to R", "to": "Working With Data In R", "width": 1}, {"arrows": "to", "from": "Regression analysis with R", "to": "Advanced Regression Analysis With R ", "width": 1}, {"arrows": "to", "from": "Introduction to Version Control with Git and GitHub", "to": "Intermediate Version Control", "width": 1}, {"arrows": "to", "from": "Introduction to Unix", "to": "Introduction to Version Control with Git and GitHub", "width": 1}]);
287287

288288
nodeColors = {};

_toc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ parts:
2626
- file: programme_information/R
2727
sections:
2828
- file: programme_information/intro_to_r
29-
- file: programme_information/regression_analysis_with_r
29+
- file: programme_information/intro_regression_analysis_with_r
30+
- file: programme_information/intermediate_regression_analysis_with_r
3031
- file: programme_information/advanced_regression_analysis_with_r
3132
- file: programme_information/working_with_data_in_r
3233
- file: programme_information/unix

data/workshop_info.csv

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Introduction to Python,18/09/2024,16/10/2024,23rd/30th October 10am-1pm (online only),https://forms.office.com/Pages/ResponsePage.aspx?id=d10qkZj77k6vMhM02PBKU-3R4SvRoClNrKjEX5qG1X1UNDJFN1NaRlk0UkpLNjVDSTM2TlM0NlpPWS4u
33
Python for Data Analysis,15/10/2024,22/11/2024,29th November/6th December 10am-1pm (In-person only),https://forms.office.com/e/ChUMbgntbr
44
Introduction to R,18/09/2024,01/10/2024,8th/15th/22nd October 1-4pm (online only),https://forms.office.com/Pages/ResponsePage.aspx?id=d10qkZj77k6vMhM02PBKU-3R4SvRoClNrKjEX5qG1X1UQjJCSzFWQjNVSldGRFhDUDNXVjdBQjNZSi4u
5-
Regression Analysis with R,18/09/2024,18/10/2024,25th October 10am-1pm (online only),https://forms.office.com/Pages/ResponsePage.aspx?id=d10qkZj77k6vMhM02PBKU-3R4SvRoClNrKjEX5qG1X1UMU1KRUpEOFRJQjFEOVVUVzFDMTRQMFZLRi4u
6-
Advanced Regression Analysis with R,,,,
5+
Introduction to Regression with R,18/09/2024,18/10/2024,25th October 10am-1pm (online only),https://forms.office.com/Pages/ResponsePage.aspx?id=d10qkZj77k6vMhM02PBKU-3R4SvRoClNrKjEX5qG1X1UMU1KRUpEOFRJQjFEOVVUVzFDMTRQMFZLRi4u
6+
Regression Analysis in R: Adapting to Varied Data Types,,,,
7+
Mixed Effects Regression with R,,,,
78
Working with Data in R,15/10/2024,11/11/2024,18th/25th November 1-4pm (online only),https://forms.office.com/e/zi5g1uP5sB
89
Introduction to HPC,,,,
910
Introduction to Version Control,,,,
@@ -12,4 +13,4 @@ Introduction to Unix,,,,
1213
Computational Thinking,,,,
1314
Software Development Best Practice,,,,
1415
Introduction to Julia,,,,
15-
Parallel Computing,,,,
16+
Parallel Computing,,,,

programme_information/advanced_regression_analysis_with_r.ipynb

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,26 @@
1111
"tags": []
1212
},
1313
"source": [
14-
"# Advanced Regression Analysis With R\n",
14+
"# Mixed Effects Regression with R\n",
1515
"\n",
1616
"## Course Description \n",
1717
"\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",
1927
"\n",
2028
"## 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",
2634
"\n",
2735
"## Pre-requisite Knowledge\n",
2836
"\n",
@@ -37,7 +45,7 @@
3745
"- Multiple linear regression with categorical, binary or continuous predictor variables.\n",
3846
"- Logistic regression.\n",
3947
"\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",
4149
"\n",
4250
"## Signup \n",
4351
"\n",
@@ -46,7 +54,7 @@
4654
},
4755
{
4856
"cell_type": "code",
49-
"execution_count": 2,
57+
"execution_count": 1,
5058
"id": "75289504-c41d-4a3c-902c-44f9f9208d0e",
5159
"metadata": {
5260
"editable": true,
@@ -76,7 +84,7 @@
7684
"\n",
7785
"\n",
7886
"# 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",
8088
"\n",
8189
"# Load the CSV file\n",
8290
"file_path = '../data/workshop_info.csv' # Adjust the path to your file location\n",
@@ -124,12 +132,46 @@
124132
"## Installation Guide \n",
125133
"All CfRR courses require attendees to use their own computer/laptop to follow workshop activities and take effective notes. \n",
126134
"\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",
128136
"\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",
129148
"\n",
130149
"## Self Study Material Link \n",
131150
"\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",
133175
"\n",
134176
"\n",
135177
"## Developers\n",
@@ -141,7 +183,7 @@
141183
},
142184
{
143185
"cell_type": "code",
144-
"execution_count": 1,
186+
"execution_count": 2,
145187
"id": "0e4d8ca2-1b94-4759-90de-9e1917fb12f3",
146188
"metadata": {
147189
"editable": true,

0 commit comments

Comments
 (0)