Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Feb 9, 2023
1 parent e6dd2eb commit 71222ab
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: walker
Type: Package
Title: Bayesian Generalized Linear Models with Time-Varying Coefficients
Version: 1.0.6
Version: 1.0.6-2
Description: Efficient Bayesian generalized linear models with time-varying coefficients
as in Helske (2022, <doi:10.1016/j.softx.2022.101016>). Gaussian, Poisson, and binomial
observations are supported. The Markov chain Monte Carlo (MCMC) computations are done using
Expand Down
5 changes: 3 additions & 2 deletions R/walker.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@
#' # both fixed intercept and time-varying level,
#' # can be unidentifiable without strong priors:
#' fit1 <- walker(y ~ rw1(~ x, beta = c(0, 1)),
#' beta = c(0, 1), chains = 1, iter = 1000)
#' beta = c(0, 1), chains = 1, iter = 1000, init = 0)
#'
#' # only time-varying level, using 0 or -1 removes intercept:
#' fit2 <- walker(y ~ 0 + rw1(~ x, beta = c(0, 1)), chains = 1, iter = 1000)
#' fit2 <- walker(y ~ 0 + rw1(~ x, beta = c(0, 1)), chains = 1, iter = 1000,
#' init = 0)
#'
#' # time-varying level, no covariates:
#' fit3 <- walker(y ~ 0 + rw1(~ 1, beta = c(0, 1)), chains = 1, iter = 1000)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ devtools::install_github("helske/walker")
NEWS
---------------------------------------------


### 22.11.2022, version 1.0.6-2

* Fixed the initial values in the examples of walker in order to get sampler
started.

### 13.10.2022, version 1.0.6

* Fixed the LFO computations in case the data contains missing values.
Expand Down
2 changes: 1 addition & 1 deletion inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ c(
pages = "101016",
year = "2022",
issn = "2352-7110",
doi = "https://doi.org/10.1016/j.softx.2022.101016",
doi = "10.1016/j.softx.2022.101016",
url = "https://www.sciencedirect.com/science/article/pii/S235271102200022X",
key = "walker"
),
Expand Down
2 changes: 1 addition & 1 deletion vignettes/walker.bib
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ @article{walkerpaper
pages = {101016},
year = {2022},
issn = {2352-7110},
doi = {https://doi.org/10.1016/j.softx.2022.101016},
doi = {10.1016/j.softx.2022.101016},
url = {https://www.sciencedirect.com/science/article/pii/S235271102200022X},
author = {Jouni Helske},
keywords = {Bayesian inference, Time-varying regression, R, Markov chain Monte Carlo},
Expand Down

0 comments on commit 71222ab

Please sign in to comment.