L2prop function

Likelihood analysis of the binomial parameters for two samples.

Likelihood analysis of the binomial parameters for two samples.

When given the numbers of ``successes'' and the sample sizes for the two samples, this function plots the normed likelihoods of the two samples and calculates the likelihood ratio for two different models, one fitting two binomial parameters, and one fitting only one.

L2prop(x, n)

Arguments

  • x: a vector containing the 2 numbers of sampling units with the feature
  • n: a vector containing the 2 numbers of sampling units examined

Returns

none, the inferred difference between the probabilities and its 95% credible interval are calculated and a plot is produced

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

Author(s)

Robert van Hulst

See Also

B1prop

prop.test

Examples

L2prop(c(13, 22), c(78, 92))
  • Maintainer: Robert van Hulst
  • License: GPL (>= 2)
  • Last published: 2018-05-15

Useful links