Skip to content

Commit

Permalink
updated doi format
Browse files Browse the repository at this point in the history
  • Loading branch information
bgctw committed Mar 13, 2019
1 parent 05fa662 commit f9ff3ca
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 45 deletions.
21 changes: 15 additions & 6 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
## Note
Added support for computing moments and statistics.

Changed doi format (brackets) in DESCRIPTION according to
comment from Uwe Ligges from
10.1641/0006-3568(2001)051[0341:lndats]2.0.co;2
to
10.1641/0006-3568(2001)051%5B0341:lndats%5D2.0.co;2

And changed back to original doi after second comment
by Uwe Ligges


## Test environments
with old doi
* local R 3.4.4 on Mint17 64bit
* Ubuntu 14.04.5 LTS (on travis-ci), 14.04
* win-builder (devel)
* R-Hub

## R CMD check results
There were no ERRORs nor WARNINGs

Note on wrong doi: I checked that the doi correctly resolves
http://dx.doi.org/10.1641%2F0006-3568(2001)051[0341%3Alndats]2.0.co%3B2

with updated doi
* local R 3.4.4 on Mint17 64bit

## R CMD check results
Note on problem with doi


10 changes: 6 additions & 4 deletions inst/docu/varianceBySigmaAndExpected.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@ lines(dnorm(xPred, m, sqrt(V))~xPred, col = "blue", lty = "dashed")
lines(dlnorm(xPred, mu, sigma)~xPred, col = "green")
```
```{r}
df <- data.frame(nu = c(0.05,0.1,0.2,0.5,1,2,5,10,20))
df$sigmaStar = sqrt(df$nu^2 + 1)
df <- data.frame(cv = c(0.05,0.1,0.2,0.5,1,2,5,10,20))
df$sigma = sqrt(log(df$cv^2 + 1))
df$sigmaStar <- exp(df$sigma)
#df$cvRev <- sqrt(exp(log(df$sigmaStar)^2) - 1)
df
```
```{r}
plot(sigmaStar ~ nu, df[1:3,])
plot(sigmaStar ~ cv, df[1:3,])
```

```{r}
sigmaStar <- 1.2
(nu <- sqrt(sigmaStar^2 - 1))
(cv <- sqrt(exp(log(sigmaStar)^2) - 1))
```

56 changes: 21 additions & 35 deletions inst/docu/varianceBySigmaAndExpected.nb.html

Large diffs are not rendered by default.

0 comments on commit f9ff3ca

Please sign in to comment.