[go: up one dir, main page]

Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebravom committed Nov 13, 2023
1 parent a4773f3 commit ceda7bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/BayesReg.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

library(rethinking)
data(Howell1)
d <- Howell1
Expand Down Expand Up @@ -101,6 +100,7 @@ lines( weight.seq , mu.mean )
# plot a shaded region for 95% HPPDI
shade( mu.HPDI , weight.seq )


# The same could have been done using the link function
mu <- link( b.reg1 , data=data.frame(weight=weight.seq), n=1e4 )

Expand Down
9 changes: 2 additions & 7 deletions scripts/rethinking_install.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@ install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOpt

cmdstanr::install_cmdstan()

#install.packages(c("coda","mvtnorm","devtools","loo","dagitty","shape"), dependencies = TRUE)
#devtools::install_github("rmcelreath/rethinking")

# alternatively
install.packages(c("mvtnorm","loo","coda"), repos="https://cloud.r-project.org/",dependencies=TRUE)
options(repos=c(getOption('repos'), rethinking='http://xcelab.net/R'))
install.packages('rethinking',type='source')
install.packages(c("mvtnorm","loo","coda","remotes"), repos="https://cloud.r-project.org/",dependencies=TRUE)
remotes::install_github("rmcelreath/rethinking")

0 comments on commit ceda7bb

Please sign in to comment.