Skip to content

Commit

Permalink
correct typo in vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
swihart committed Dec 22, 2022
1 parent 4ff43f5 commit cf9bd4a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ Logistic.Rd
Rmd
readMe.Rmd
readMe.html
.DS_Store
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
@@ -1,3 +1,3 @@
Version: 0.1.1
Date: 2022-03-02 02:40:29 UTC
SHA: 517ad01ec2ed7d1d6d619fcb9de923b9df194d14
Version: 0.1.2
Date: 2022-12-22 22:14:13 UTC
SHA: 4ff43f580c2b5478b9cf7e4e845979c526a3b3a8
5 changes: 3 additions & 2 deletions DESCRIPTION
@@ -1,7 +1,7 @@
Package: bridgedist
Title: An Implementation of the Bridge Distribution with Logit-Link as in Wang
and Louis (2003)
Version: 0.1.1
Version: 0.1.2
Authors@R: person("Bruce", "Swihart", email = "bruce.swihart@gmail.com", role = c("aut", "cre"))
Description: An implementation of the bridge distribution with logit-link in
R. In Wang and Louis (2003) <DOI:10.1093/biomet/90.4.765>, such a univariate
Expand All @@ -14,7 +14,7 @@ Depends:
R (>= 3.0.0)
License: GPL (>=2)
LazyData: false
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
Suggests:
knitr,
rmarkdown,
Expand All @@ -26,3 +26,4 @@ Imports:
VignetteBuilder: knitr
URL: https://github.com/swihart/bridgedist
BugReports: https://github.com/swihart/bridgedist/issues
Encoding: UTF-8
25 changes: 14 additions & 11 deletions NEWS.md
@@ -1,19 +1,22 @@
# CHANGES IN bridgedist VERSION 0.1.1
------------------------------------------------------------------------------
version 0.1.2
------------------------------------------------------------------------------

## NEW FEATURES
* fixed typo in vignette

- changed license to GPL (>=2)
- changed `scale` to `phi`, as indicated in startup message
- changed http to https where appropriate
------------------------------------------------------------------------------
version 0.1.1
------------------------------------------------------------------------------

# CHANGES IN bridgedist VERSION 0.1.0
* changed license to GPL (>=2)
* changed `scale` to `phi`, as indicated in startup message
* changed http to https where appropriate

## NEW FEATURES
------------------------------------------------------------------------------
version 0.1.0
------------------------------------------------------------------------------

- first version of bridgedist: it covers the most popular case (Logit-Link) in Wang and Louis 2003, offering the familiar p/d/q/r functions for the bridge distribution
* first version of bridgedist: it covers the most popular case (Logit-Link) in Wang and Louis 2003, offering the familiar p/d/q/r functions for the bridge distribution

# CHANGES IN bridgedist VERSION 0.1.0.9000

## MISC

- Github for devel; CRAN for releases.
24 changes: 24 additions & 0 deletions cran-comments.md
@@ -1,3 +1,27 @@
# bridgedist R package
Bruce Swihart
Dec 2022


## Submission 2
- corrected mathematical statement (typo in vignette)


## Test environments
Local OS X: R version 4.2.2 (2021-11-01)
* Platform: x86_64-apple-darwin17.0 (64-bit)
* Running under: macOS Big Sur 11.2.3

rhub::check(platform = "debian-clang-devel"): Debian Linux, R-devel, clang, ISO-8859-15 locale
rhub::check(platform = "windows-x86_64-devel"): Windows Server 2022, R-devel, 64 bit


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


## Downstream dependencies
There are currently no downstream dependencies for this package.

# bridgedist R package
Bruce Swihart
Expand Down
2 changes: 1 addition & 1 deletion vignettes/the_bridgedist_basics.Rmd
Expand Up @@ -44,7 +44,7 @@ ggplot(melt.df, aes(x, value, color=Distribution)) +
ylab("Probability density function")
```

The implication is that a random variable from a Bridge distribution plus random variable from a standard logistic distribution is a logistic random variable with a phi greater than one.
The implication is that a random variable from a Bridge distribution plus random variable from a standard logistic distribution is a logistic random variable with a scale greater than one (1/phi).


```{r, fig.width=6, fig.cap = "Fig. 2. 10000 random variates in each panel. From left to right: the bridge distribution, the logistic with scale=1, the sum of the previous two, and the logistic with scale=1/phi. Note how similar the third and fourth panel, the application supporting the theory.", warning=FALSE, message=FALSE}
Expand Down

0 comments on commit cf9bd4a

Please sign in to comment.