Learn R Programming

RRMLRfMC (version 0.4.0)

Aupdate: Aupdate

Description

This function is used to update A matrix

Usage

Aupdate(Dfix, Gamma, Adata, R, p, q, I, iniA, eps, refA)

Arguments

Dfix

the coefficient matrix for study covariates

Gamma

the G matrix value

Adata

the dataset

R

the rank of reduced rank model

p

the number of covariates in the dimension reduction

q

the numbne of study covariates

I

a U by U incidence matrix with elements; I(i,j)=1 if state j can be accessed from state i in one step and 0 otherwise

iniA

initial value for the iteration

eps

the tolerance for convergence, default is 10^-5

refA

a vector of reference categories

Value

a list of outputs:

  • NewA: the updated A matrix

  • loglikeA: the loglikelihood when updating A