Skip to content

Commit

Permalink
fixed issue raised in CRAN checks
Browse files Browse the repository at this point in the history
  • Loading branch information
merliseclyde committed Mar 25, 2018
1 parent 9f8144c commit ef5a739
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# BAS 1.4.9 March 19, 2018
# BAS 1.4.9 March 24, 2018

## Bugs

* fixed bug in `confint.coef.bas` when parm is a character string
* added parentheses in betafamily.c line 382 as indicated in CRAN check for R devel

## Features

Expand Down
2 changes: 1 addition & 1 deletion src/betapriorfamily.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ double EB_local_glm_logmarg(SEXP hyperparams, int pmodel, double W,

ghat = fmax(0.0, W/p - 1);
logmarglik = loglik_mle + M_LN_SQRT_2PI - 0.5* logdet_Iintercept;
if (p >= 1.0 & ghat > 0) {
if ((p >= 1.0) & (ghat > 0)) {
logmarglik += -.5*p*log(1.0 + ghat) -.5*W/(1.0 + ghat);
}
return(logmarglik);
Expand Down

0 comments on commit ef5a739

Please sign in to comment.