sequence_probs: Calculation of probabilities for binary sequences

Description Usage Arguments Details Value Author(s) Examples

View source: R/binary_data.R

Description

Calculation of proabilities for binary sequences based on the final matrix generated by the genetic algorithm

Usage

1

Arguments

Xt

Representative matrix generated by the genetic algorithm with iter_matrix

Details

Observation of binary correlated binary data can be expressed as binary sequences. In the case of two binary variables possible observations are (0,0), (0,1), (1,0) and (1,1). In general, 2^m binary sequences are possible, where m is the number of binary variables. Based on the representative matrix generated by the genetic algorithm the probability for each binary sequence is determined.

Value

A vector of probabilities for the binary sequences

Author(s)

Jochen Kruppa, Klaus Jung

Examples

1
2
3
4
5
6
### Generation of the representive matrix Xt
X0 <- start_matrix(p = c(0.5, 0.6), k = 1000)
Xt <- iter_matrix(X0, R = diag(2), T = 10000, e.min = 0.00001)$Xt

### Calculation of probabilities for binary sequences
sequence_probs(Xt = Xt)

jkruppa/RepeatedHighDim documentation built on May 19, 2019, 12:45 p.m.