Skip to content

Commit

Permalink
new gamma par is much better than old anyway (<< variance)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lawrence Miller committed Jun 23, 2018
1 parent ee08a79 commit 0e510e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_gamma.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ test_that("standardisation is done correctly",{
# check fitted parameters
parcomp <- mm$par
names(parcomp) <- NULL
expect_equal(c(-21.6765623,0.1103963, 0.2100172),parcomp,tol=par.tol)
expect_equal(c(-10.4721653, 0.1106817, 0.2100327), parcomp, tol=par.tol)

# generate some gamma data where the mode is away from 0
set.seed(123)
gdata<-data.frame(object=1:1000,distance=rgamma(1000,scale=2,shape=3))
gdata<-data.frame(object=1:1000,distance=rgamma(1000, scale=2, shape=3))

mm <- ddf(dsmodel=~cds(key="gamma"), data=gdata, method="ds",
meta.data=list(width=max(gdata$distance)))
Expand Down

0 comments on commit 0e510e4

Please sign in to comment.