CRAN-v0.6.0
koenderks
released this
22 Sep 10:12
·
907 commits
to development
since this release
jfa 0.6.0
New features
- Added argument
alternative
with possible optionsless
(default),two.sided
, andgreater
to theevaluation()
function that allows control over the type of hypothesis test to perform and the type of confidence / credible interval to calculate. - Added
predict.jfaPrior()
andpredict.jfaPosterior()
that produce predictions for the data under the prior or posterior distribution. - Added
method = 'param'
to functionauditPrior()
which takes as input the rawalpha
andbeta
parameters of the prior distribution. - Added
method = 'strict'
to functionauditPrior()
which constructs an (improper) prior distribution that yields the same results (with respect to sample sizes and upper limits) as classical procedures. - Added the modified seed sampling algorithm (
method = 'sieve')
toselection()
. - Added a new vignette that describes the sampling methodology implemented in
jfa
. - objects from
auditPrior()
,planning()
, andevaluation()
now contain information about the posterior predictive distribution whenN.units
is specified.
Major changes
- From
jfa
0.5.7 tojfa
0.6.0 there has been a major overhaul in the names of function arguments. This is done so that the calls integrate better with general R syntax and the package gets more user-friendly. I apologize for any inconvenience this may cause. The following names have been changed:median
->impartial
(inauditPrior()
)sampleK
->x
(inauditPrior()
)sampleN
->n
(inauditPrior()
)N
->N.units
(inauditPrior()
)maxSize
->max
(inplanning()
)increase
->by
(inplanning()
)withReplacement
->replace
(inselection()
)ordered
->order
(inselection()
)ascending
->decreasing
(inselection()
)intervalStartingPoint
->start
(inselection()
)algorithm
->method
(inselection()
)expectedErrors
->expected
(inauditPrior()
andplanning()
)confidence
->conf.level
(inauditPrior()
,planning()
, andevaluation()
)pHmin
->p.hmin
(inauditPrior()
)minPrecision
->min.precision
(inauditPrior()
,planning()
, andevaluation()
)population
->data
(inselection()
)kSumstats
->x
(inevaluation()
)nSumstats
->n
(inevaluation()
)sample
->data
(inevaluation()
)bookValues
->values
(inselection()
andevaluation()
)auditValues
->values.audit
(inevaluation()
)counts
->times
(inevaluation()
)popBookValues
->N.units
(inevaluation()
)rohrbachDelta
->r.delta
(inevaluation()
)momentPopType
->m.type
(inevaluation()
)csA
->cs.a
(inevaluation()
)csB
->cs.b
(inevaluation()
)csMu
->cs.mu
(inevaluation()
)records
->items
(inselection()
)mus
->values
(inselection()
)hypotheses
->hyp
(inauditPrior()
)
poisson
is now the default likelihood / method for all functions since it is the most conservative.method = 'interval'
is now the default selection method.- The default prior distributions used when
method = 'default'
orprior = TRUE
are now set to thegamma(1, 1)
,beta(1,1)
, andbeta-binomial(1, 1)
priors. - The
times
(formercounts
) argument inevaluation()
must now be indicated as a column name in thedata
instead of a vector. nPrior
andkPrior
have been removed from theplanning()
andevaluation()
functions. All prior distributions must now be specified usingprior = TRUE
(noninformative priors) or using a call toauditPrior()
.- Removed the
auditBF()
function since its value is available throughevaluation(materiality = x, prior = auditPrior(method = 'impartial', materiality = x))
Minor changes
- It is now allowed for
x
andn
to have the same value inevaluation()
. - The parameters for an impartial beta-binomial prior are now calculated more efficiently in the case of zero expected errors.