napp2logistic: Convert a (equi-covariance) NAPP model to logistic regression...

Description Usage Arguments Value Examples

Description

Convert a (equi-covariance) NAPP model to logistic regression coefficients

Usage

1
napp2logistic(meanColVecs, covMat, priors = NULL)

Arguments

meanColVecs

[nVar x nGroup] matrix of means

covMat

[nVar x nVar] common covariance matrix

priors

[nGroup x 1] vector of priors

Value

bMat [(nVar+1) x 1] vector of coefficients s.t. xmatAug and xmatAug rbind(1, xmat) where xmat is rbind(xvar1,xvar2,xvar3...)

Examples

1
2
3
4
5
6
  mu=matrix(c(-2, 0, 2,
-2, 0, -2),2,3, byrow = FALSE);
covMat=matrix(c(1, .5,
               .5, 1), 2,2, byrow=FALSE);
bMat=napp2logistic(meanColVecs,covMat))
print(bMat)

tnearey/bhmnl documentation built on Nov. 5, 2019, 10:55 a.m.