Skip to content

Commit 5db0986

Browse files
committed
fixed file names so they work with wiki links
1 parent 26a55b4 commit 5db0986

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

ARM/Ch.10/10.6_IVinaRegressionFramework.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ watched.hat <- beta.mean3a[1] + beta.mean3a[2] * encouraged + beta.mean3a[3] * p
4444
## (sesame_multi_preds_3b.stan)
4545
## lm (y ~ watched.hat + pretest + as.factor(site) + setting)
4646
dataList.4 <- list(N=length(watched.hat), watched=y,encouraged=watched.hat,pretest=pretest, site=site,setting=setting)
47-
sesame_multi_pred_3b.sf1 <- stan(file='sesame_multi_preds_3a.stan',
47+
sesame_multi_pred_3b.sf1 <- stan(file='sesame_multi_preds_3b.stan',
4848
data=dataList.4,
4949
iter=1000, chains=4)
5050
print(sesame_multi_pred_3b.sf1)

ARM/Ch.3/3.7.a_Prediction.R

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
library(rstan)
22
library(ggplot2)
33

4+
### Data
5+
6+
source("kidiq.data.R", echo = TRUE)
7+
8+
### Model: kid_score ~ mom_hs + mom_iq
9+
data.list <- c("N", "kid_score", "mom_hs", "mom_iq", "mom_hs_new", "mom_iq_new")
10+
kidiq_prediction.sf <- stan(file='kidiq_prediction.stan', data=data.list,
11+
iter=1000, chains=4)
12+
print(kidiq_prediction.sf, pars = c("kid_score_pred"), prob = c(0.025, 0.975))
13+
14+
415
### Data
516

617
source("kids_before1987.data.R", echo = TRUE)

0 commit comments

Comments
 (0)