pA {petersenlab} | R Documentation |
Bayes' Theorem.
Description
Estimate marginal and conditional probabilities using Bayes theorem.
Usage
pA(pAgivenB, pB, pAgivenNotB)
pB(pBgivenA, pA, pBgivenNotA)
pAgivenB(pBgivenA, pA, pB = NULL, pBgivenNotA = NULL)
pBgivenA(pAgivenB, pB, pA = NULL, pAgivenNotB = NULL)
pAgivenNotB(pAgivenB, pA, pB)
pBgivenNotA(pBgivenA, pA, pB)
Arguments
pAgivenB |
The conditional probability of |
pB |
The marginal probability of event |
pAgivenNotB |
The conditional probability of |
pBgivenA |
The conditional probability of |
pA |
The marginal probability of event |
pBgivenNotA |
The conditional probability of |
Details
Estimates marginal or conditional probabilities using Bayes theorem.
Value
The requested marginal or conditional probability. One of:
the marginal probability of
A
the marginal probability of
B
the conditional probability of
A
givenB
the conditional probability of
B
givenA
the conditional probability of
A
given NOTB
the conditional probability of
B
given NOTA
Examples
pA(pAgivenB = .95, pB = .285, pAgivenNotB = .007171515)
pB(pBgivenA = .95, pA = .285, pBgivenNotA = .007171515)
pAgivenB(pBgivenA = .95, pA = .285, pB = .2758776)
pAgivenB(pBgivenA = .95, pA = .285, pBgivenNotA = .007171515)
pAgivenB(pBgivenA = .95, pA = .003, pBgivenNotA = .007171515)
pBgivenA(pAgivenB = .95, pB = .285, pA = .2758776)
pBgivenA(pAgivenB = .95, pB = .285, pAgivenNotB = .007171515)
pBgivenA(pAgivenB = .95, pB = .003, pAgivenNotB = .007171515)
pAgivenNotB(pAgivenB = .95, pB = .003, pA = .01)
pBgivenNotA(pBgivenA = .95, pA = .003, pB = .01)
[Package petersenlab version 1.0.0 Index]