rmallows: Mallows proposal distribution function

Description Usage Arguments Value See Also Examples

Description

The rmallows function will propose a new order for the elements of the parameter ref.

Usage

1
rmallows(ref, beta)

Arguments

ref

vector - elements of ref must be of the form "N#" where # is a number.

beta

positive - Mallows temperature. This parameter influences the way the elements of ref are mixed.

Value

The function returns a list of 2 items :

order

order is a vector of integers of the size of ref. It is the order proposed by the rmallowsBlocks function.

new

ref[order] - Vector of ref elements mixed according to the new order.

See Also

MCMC.GBN, rmallowsBlocks

Examples

1
2
3
4
 ref <- c("N1","N2","N3","N4","N5")
 r <- rmallows(ref, 0.7)
 r$order
 r$new

andreamrau/GBNcausal documentation built on May 12, 2019, 3:34 a.m.