Skip to content

Commit

Permalink
Reorganized files; fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmyleswhite committed Feb 9, 2012
1 parent cae6b75 commit 0529add
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -5,7 +5,7 @@ model
x[i] ~ dnorm(mu, tau)
}

mu ~ dnorm(-1000, 1)
mu ~ dnorm(-1000, 10)

sigma <- 3
tau <- pow(sigma, -1)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -6,5 +6,5 @@ sigma <- 3
x <- rnorm(100, mu, sigma)

write.csv(data.frame(X = x),
file = file.path('data', 'normal_mean.csv'),
file = file.path('data', 'normal', 'normal_mean.csv'),
row.names = FALSE)
Expand Up @@ -6,5 +6,5 @@ sigma <- 3
x <- rnorm(100, mu, sigma)

write.csv(data.frame(X = x),
file = file.path('data', 'normal_mean_strong_broken_prior.csv'),
file = file.path('data', 'normal', 'normal_mean_strong_broken_prior.csv'),
row.names = FALSE)
Expand Up @@ -6,5 +6,5 @@ sigma <- 3
x <- rnorm(100, mu, sigma)

write.csv(data.frame(X = x),
file = file.path('data', 'normal_mean_strong_prior.csv'),
file = file.path('data', 'normal', 'normal_mean_strong_prior.csv'),
row.names = FALSE)
Expand Up @@ -6,5 +6,5 @@ sigma <- 3
x <- rnorm(100, mu, sigma)

write.csv(data.frame(X = x),
file = file.path('data', 'normal_mean_strong_wrong_prior.csv'),
file = file.path('data', 'normal', 'normal_mean_strong_wrong_prior.csv'),
row.names = FALSE)
4 changes: 2 additions & 2 deletions scripts/normal_mean.R → scripts/normal/normal_mean.R
@@ -1,8 +1,8 @@
library('rjags')

df <- read.csv(file.path('data', 'normal_mean.csv'))
df <- read.csv(file.path('data', 'normal', 'normal_mean.csv'))

jags <- jags.model('bugs/normal_mean.bugs',
jags <- jags.model(file.path('bugs', 'normal', 'normal_mean.bugs'),
data = list('x' = with(df, X),
'N' = nrow(df)),
n.chains = 4,
Expand Down
@@ -1,8 +1,8 @@
library('rjags')

df <- read.csv(file.path('data', 'normal_mean_strong_broken_prior.csv'))
df <- read.csv(file.path('data', 'normal', 'normal_mean_strong_broken_prior.csv'))

jags <- jags.model('bugs/normal_mean_strong_broken_prior.bugs',
jags <- jags.model(file.path('bugs', 'normal', 'normal_mean_strong_broken_prior.bugs'),
data = list('x' = with(df, X),
'N' = nrow(df)),
n.chains = 4,
Expand Down
@@ -1,8 +1,8 @@
library('rjags')

df <- read.csv(file.path('data', 'normal_mean_strong_prior.csv'))
df <- read.csv(file.path('data', 'normal', 'normal_mean_strong_prior.csv'))

jags <- jags.model('bugs/normal_mean_strong_prior.bugs',
jags <- jags.model(file.path('bugs', 'normal', 'normal_mean_strong_prior.bugs'),
data = list('x' = with(df, X),
'N' = nrow(df)),
n.chains = 4,
Expand Down
@@ -1,8 +1,8 @@
library('rjags')

df <- read.csv(file.path('data', 'normal_mean_strong_wrong_prior.csv'))
df <- read.csv(file.path('data', 'normal', 'normal_mean_strong_wrong_prior.csv'))

jags <- jags.model('bugs/normal_mean_strong_wrong_prior.bugs',
jags <- jags.model(file.path('bugs', 'normal', 'normal_mean_strong_wrong_prior.bugs'),
data = list('x' = with(df, X),
'N' = nrow(df)),
n.chains = 4,
Expand Down

0 comments on commit 0529add

Please sign in to comment.