Skip to content

Commit

Permalink
Downgraded to stable rstan, adaptation level vignette optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
demsarjure committed Apr 15, 2021
1 parent 636986c commit 660667c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: bayes4psy
Version: 1.2.5
Version: 1.2.6
Title: User Friendly Bayesian Data Analysis for Psychology
Description: Contains several Bayesian models for data analysis of psychological tests. A user friendly interface for these models should enable students and researchers to perform professional level Bayesian data analysis without advanced knowledge in programming and Bayesian statistics. This package is based on the Stan platform (Carpenter et el. 2017 <doi:10.18637/jss.v076.i01>).
Authors@R:
Expand Down Expand Up @@ -37,7 +37,7 @@ Suggests:
knitr (>= 1.30.0)
LinkingTo:
StanHeaders (>= 2.21.0.6),
rstan (>= 2.21.2),
rstan (>= 2.21.0),
BH (>= 1.72.0.3),
Rcpp (>= 1.0.5),
RcppEigen (>= 0.3.3.7.0)
Expand Down
13 changes: 8 additions & 5 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revisions

## CRAN submission 14. 4. 2021

Further vignettes optimization. The package now uses a stable rstan version.

## CRAN submission 7. 12. 2020

Vignettes are now optimized to enable faster package compilation.
Expand All @@ -8,7 +12,6 @@ Vignettes are now optimized to enable faster package compilation.

Revised tests to avoid stability issues on Solaris.


## CRAN submission 19. 2. 2020

Reran all unit tests manually and corrected all checks.
Expand All @@ -32,17 +35,17 @@ Response: Added function level examples to exported model fitting functions (b_b
3. CRAN: We are missing some authors and copyright holder in the authors list: author Rasmus Baath, author John Kruschke, Trustees of Columbia University.
Response: Authors mentioned above are now added into the Authors@R field.

## Test environments

# Test environments
* local OS X Mojave 10.14.5, R 3.5.4
* local Windows 10, R 3.5.4
* win-builder (R-devel)
* Ubuntu Linux 16.04 LTS (rhub)
* Fedora Linux, R-devel (rhub)

## R CMD check results

# R CMD check results
There were no ERRORs or WARNINGs.
There were no ERRORs or WARNINGs.

There were 2 NOTES:

Expand All @@ -54,6 +57,6 @@ There were 2 NOTES:
* hecking for GNU extensions in Makefiles ... NOTE
GNU make is a SystemRequirements.

## Downstream dependencies

# Downstream dependencies
There are currently no downstream dependencies for this package.
10 changes: 1 addition & 9 deletions vignettes/adaptation_level.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,15 @@ group2_part2 <- data %>% filter(group == 2 & part == 2)
Once the data is prepared we can fit the Bayesian models, the input data comes in the form of three vectors, $x$ stores indexes of the measurements, $y$ subject's responses and $s$ indexes of subjects. Note here that, due to vignette limitations, all fits are built using only one chain, using more chains in parallel is usually more efficient. Also to increase the building speed of vignettes we greatly reduced the amount of iterations, use an appropriate amount of iterations when executing actual analyses!

```{r, message=FALSE, warning=FALSE, results = 'hide'}
# prior
beta_prior <- b_prior(family="normal", pars=c(0, 1))
# attach priors to relevant parameters
priors <- list(c("mu_b", beta_prior))
# fit
fit1 <- b_linear(x=group1_part2$sequence,
y=group1_part2$response,
s=group1_part2$subject,
priors=priors,
iter=200, warmup=100, chains=1)
fit2 <- b_linear(x=group2_part2$sequence,
y=group2_part2$response,
s=group2_part2$subject,
priors=priors,
iter=200, warmup=100, chains=1)
```

Expand Down

0 comments on commit 660667c

Please sign in to comment.