Tutorials
Overview
1
R package with unit tests
1.1
Learning objectives
1.2
Setting up
1.3
Create your R package
1.3.1
Edit the DESCRIPTION file
1.3.2
Create a LICENSE
1.3.3
Create a README
1.4
Creating a function
1.4.1
Template function
1.4.2
Edit the function
1.4.3
Documentation
1.4.4
Imports
1.5
Build your package
1.5.1
Check
1.5.2
Build
1.5.3
Install
1.5.4
Test
1.6
Error checking
1.7
Unit tests
1.7.1
Setup
1.7.2
New unit tests
1.7.3
Run all tests
1.8
Documentation
1.8.1
Vignettes
1.8.2
pkgdown
1.9
Share your package
1.9.1
Git on RStudio
1.9.2
Set up git for this project
1.9.3
GitHub access token
1.9.4
Make a new GitHub repository
1.9.5
Set up website
1.9.6
Install your package from GitHub
1.10
Further resources
1.10.1
Workflow
1.10.2
The full
report_p
function
1.11
Glossary
2
What’s wrong with aggregating data?
2.0.1
Measurement with Error
2.0.2
Aggregating by stimuli
2.0.3
Aggregating by raters
2.0.4
Mixed Effect Model
3
Simulating Data
3.1
Independent samples
3.1.1
Parameters
3.1.2
Scores
3.1.3
Check your data
3.1.4
Analysis
3.1.5
Function
3.2
Paired samples
3.2.1
Parameters
3.2.2
Correlated Scores
3.2.3
Check your data
3.2.4
Analysis
3.2.5
Function
3.3
Intercept model
3.3.1
Parameters
3.3.2
Subject intercepts
3.3.3
Observations
3.3.4
Calculate the score
3.3.5
Analyses
3.4
Functions
3.4.1
Distribution to intercept specification
3.4.2
Intercept to distribution specification
4
Simulating Mixed Effects
4.1
Setup
4.2
Random intercepts
4.2.1
Subjects
4.2.2
Stimuli
4.2.3
Trials
4.3
Calculate DV
4.3.1
Fixed effects
4.3.2
Interactions
4.4
Analysis
4.4.1
Sense checks
4.4.2
Random effects
4.5
Function
4.6
Random slopes
4.6.1
Subjects
4.6.2
Stimuli
4.6.3
Trials
4.7
Calculate DV
4.8
Analysis
4.8.1
Sense checks
4.8.2
Random effects
4.9
Function
5
Webpages
5.1
Learning objectives
5.2
Create a webpage
5.2.1
Create a project
5.2.2
Site header
5.2.3
Site script (only for GitLab)
5.2.4
Main page
5.2.5
Render the site
5.3
Add content
5.3.1
Headings and paragraphs
5.3.2
Links
5.3.3
Lists
5.3.4
Images
5.4
Add pages
5.5
Styles
5.5.1
Change the theme
5.5.2
Add custom styles
5.5.3
Change global fonts and colours
5.5.4
Change certain elements
5.6
Put your webpage online
5.6.1
Save this version with git
5.6.2
GitHub
5.6.3
GitLab
Appendices
A
Installing
R
A.1
Installing Base R
A.2
Installing RStudio
A.3
Installing LaTeX
B
Git and GitHub
B.1
Get a GitHub account
B.2
Set up RStudio
B.2.1
Install git
B.2.2
Enable version control in RStudio
B.3
Set your GitHub info
B.4
Create an SSH Key on RStudio
B.5
Create an SSH Key on GitHub
C
Pipes
D
Symbols
PsyTeachR
Tutorials
Tutorials
Lisa DeBruine
2020-10-12
Overview
I’m slowly moving my code tutorials here.