Learn R Programming

likelihoodExplore (version 0.1.0)

likwilcox: Wilcoxon Rank Sum Log Likelihood Function

Description

The log likelihood of a Wilcoxon rank sum density with data, x, m and n parameters.

Usage

likwilcox(x, m, n, log = TRUE)

Arguments

x

vector of quantiles.

m

numbers of observations in the first and second sample, respectively. Can be vectors of positive integers.

n

numbers of observations in the first and second sample, respectively. Can be vectors of positive integers.

log

logical; if TRUE, probabilities p are given as log(p).

Value

A numeric scalar for the log likelihood of the Wilcoxon rank sum density given the data where m and n can be held constant or if vector were given vector will be returned.

Details

The log likelihood is the log of a function of parameters given the data.

Examples

Run this code
# NOT RUN {
likwilcox(x = rwilcox(nn = 2, m = 3, n = 4),
        m = 3, n = 4)
# }

Run the code above in your browser using DataLab