Skip to content

Commit

Permalink
doc updates
Browse files Browse the repository at this point in the history
README revision for ulam
  • Loading branch information
Richard McElreath committed Oct 23, 2018
1 parent 434c2ce commit 5c714a9
Show file tree
Hide file tree
Showing 5 changed files with 345 additions and 92 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: rethinking
Type: Package
Title: Statistical Rethinking book package
Version: 1.80
Date: 2018-07-06
Date: 2018-10-23
Author: Richard McElreath
Maintainer: Richard McElreath <[email protected]>
Imports: coda, MASS, mvtnorm, loo
Expand Down
9 changes: 7 additions & 2 deletions R/ulam_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ if ( FALSE ) {
check_hash( stancode(z2) , "30e2efaf60da86c26c12d1546be851c2" )

# continuous missing data

# automated merging and NA indexing
# merge_missing
UCBadmit$x <- rnorm(12)
UCBadmit$x[1:2] <- NA
z2b <- ulam(
z2b2 <- ulam(
alist(
admit ~ binomial(applications,p),
logit(p) <- a + b*male + bx*x_merge,
Expand Down Expand Up @@ -273,15 +276,17 @@ if ( FALSE ) {
logit(p) <- v[dept,1] + v[dept,2]*male,
vector[2]:v[dept] ~ multi_normal( v_mu , Rho , sigma ),
vector[2]:v_mu[[1]] ~ normal(0,4),
v_mu[[2]] ~ normal(0,1),
vector[2]:v_mu[[2]] ~ normal(0,1),
sigma[1] ~ half_normal(0,1),
sigma[2] ~ half_normal(0,2),
Rho ~ lkjcorr(2)
),
data=UCBadmit )

# cholesky form

# multi_normal_NC needs to edit formula with macro
# DOES NOT YET WORK
z8p <- ulam(
alist(
admit ~ binomial(applications,p),
Expand Down
Loading

0 comments on commit 5c714a9

Please sign in to comment.