R-toolbox
- Use RMarkdown to enforce reproducible analysis
- The
readr
version of read_csv()
is
preferred
- Remember that csv is not always actually separated with commas.
- The
haven
package contains functions for reading common
proprietary file formats.
- In general a package will exist for reading strange datatypes.
Google is your friend!
- Use code to read in your data
- Nogen statisktiske pointer om det her
- A Table One provides a compact describtion of the data we are
working with
- With a little bit of work we can control the content of the
table.
- tidy data provides a consistent way of organizing data
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally
- The data generating function is not necessarily the same as the
distribution that best fit the data
- Chose the distribution that best describes your data - not the one
that fits best
- Use
.md
files for episodes when you want static
content
- We can do linear regression on multiple independent variables
- Be careful not to overfit - only retain variables that are
significant (and sensible)
- We can fit just as well on categorical variables - but make sure
they are categorical
- Interpreting linear models with multiple variables are not trivial _
Interpreting linear models with interaction terms are even less
trivial
- Use
.md
files for episodes when you want static
content
- The mean of a sample can be treated as if it is normally
distributed
- Relatively small changes to a bar chart can make it look much more
professional
- Use
.md
files for episodes when you want static
content
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally
- Use
.md
files for episodes when you want static
content
- Use
.Rmd
files for episodes when you need to generate
output
- Run
sandpaper::check_lesson()
to identify any issues
with your lesson
- Run
sandpaper::build_lesson()
to preview your lesson
locally