Skip to content
Snippets Groups Projects
Commit 183396d8 authored by Ben Anderson's avatar Ben Anderson
Browse files

fixed merge & code for pages

Merge branch 'master' of github.com:dataknut/weGotThePower

# Conflicts:
#	paper/makePages.R
parents 9b4aca85 2febb1f0
No related branches found
No related tags found
No related merge requests found
No preview for this file type
source diff could not be displayed: it is too large. Options to address this: view the blob.
---
title: "Equation tests"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
Variance:
$\sigma^{2} = \frac{\sum\limits_{i=1}^{n} \left(x_{i} - \bar{x}\right)^{2}} {n-1}$
Standard deviation:
$\sigma = \sqrt{\frac{\sum\limits_{i=1}^{n} \left(x_{i} - \bar{x}\right)^{2}} {n-1}}$
Margins of error (proportions)
$$me = +/- z * \sqrt{\frac{p(1-p)} {n-1}}$$
\ No newline at end of file
# run this to knit the .Rmd to an html file in the pages/ directory # run this to knit the .Rmd to an html file in the docs/ directory for github pages
library(markdown) library(markdown)
library(bookdown) library(bookdown)
library(dkUtils) library(dkUtils)
...@@ -9,4 +9,5 @@ rmdFile <- paste0(myParams$repoLoc, "/paper/weGotThePower.Rmd") ...@@ -9,4 +9,5 @@ rmdFile <- paste0(myParams$repoLoc, "/paper/weGotThePower.Rmd")
rmarkdown::render(input = rmdFile, rmarkdown::render(input = rmdFile,
output_format = "html_document2", output_format = "html_document2",
output_file = paste0(myParams$repoLoc, "/docs/weGotThePower.html") output_file = paste0(myParams$repoLoc, "/docs/weGotThePower.html")
) )
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment