solve2 {binarySimCLF}R Documentation

Pairwise Moments

Description

Given two marginal means mui, muj and a pairwise odds ratio psi, the function computes the moment E[Y_i Y_j] := μ_{ij}. This function is called by ranBin2 and psi2var. There is no reason for the user to use this function in any direct way.

Usage

solve2(mui, muj, psi)

Arguments

mui Mean of Bernoulli Y_i
muj Mean of Bernoulli Y_j
psi Pairwise odds ratio of Y_i and Y_i

Value

Returns E[Y_i Y_j] := μ_{ij}.

See Also

mardia, ranBin2, psi2var

Examples

    #Example
    mu1=0.35;
    mu2 = 0.35;
    psi = 2.5 ;
    solve2(mui=mu1, muj=mu2, psi=2.5)

[Package binarySimCLF version 1.0 Index]