Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
avehtari committed Sep 6, 2020
2 parents 3dd2982 + 1438e7b commit 7b87e69
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 148 deletions.
2 changes: 1 addition & 1 deletion Arsenic/data/arsenic_setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Load libraries
library("rprojroot")
root<-has_dirname("RAOS-Examples")$make_fix_file()
root<-has_file(".ROS-Examples-root")$make_fix_file()
library("foreign")

# Read in the data
Expand Down
2 changes: 1 addition & 1 deletion Congress/congress.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for (s in 1:n_sims) {
}

#' #### Our posterior mean and sd of how many districts the Dems will win
print(c(mean(dems_pred), sqrt(var(dems_pred))),digits=2)
print(c(mean(dems_pred), sd(dems_pred)), digits=2)
#' #### Histogram of how many districts the Dems will win
hist(dems_pred)

Expand Down
2 changes: 1 addition & 1 deletion Congress/congress.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ for (s in 1:n_sims) {
#### Our posterior mean and sd of how many districts the Dems will win

```{r }
print(c(mean(dems_pred), sqrt(var(dems_pred))),digits=2)
print(c(mean(dems_pred), sd(dems_pred)), digits=2)
```

#### Histogram of how many districts the Dems will win
Expand Down
2 changes: 1 addition & 1 deletion Congress/congress_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ savefigs <- FALSE

#' #### Load packages
library("rprojroot")
root<-has_dirname("RAOS-Examples")$make_fix_file()
root<-has_file(".ROS-Examples-root")$make_fix_file()

#' #### Load and pre-process data
congress <- vector("list", 49)
Expand Down
2 changes: 1 addition & 1 deletion Congress/congress_plots.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ savefigs <- FALSE

```{r }
library("rprojroot")
root<-has_dirname("RAOS-Examples")$make_fix_file()
root<-has_file(".ROS-Examples-root")$make_fix_file()
```

#### Load and pre-process data
Expand Down
143 changes: 0 additions & 143 deletions Introclass/fakeresid.Rmd

This file was deleted.

0 comments on commit 7b87e69

Please sign in to comment.