Estimate Probability Vectors From Count Vectors
This function takes a numeric count vector and returns estimated probabilities of the corresponding counts.
The following probability estimation methods are implemented in this function:
method = "empirical"
: generates the relative frequency of the data x/sum(x)
.
estimate.probability(x, method = "empirical")
x |
a numeric vector storing count values. |
method |
a character string specifying the estimation method tht should be used to estimate probabilities from input counts. |
a numeric probability vector.
Hajk-Georg Drost
# generate a count vector x <- runif(100) # generate a probability vector from corresponding counts # method = "empirical" x.prob <- estimate.probability(x, method = "empirical")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.