derivativeB: derivativeB

Description Usage Arguments Value

View source: R/derivativeB.R

Description

This function is used to calculate the loglikelihood with a given matrix B=AG

Usage

1
derivativeB(B, I, zy, refd)

Arguments

B

a numeric coefficient matrix

I

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

zy

the variable values for a given observation

refd

a vector of reference categories

Value

loglikelihood


wangpeinihao/RRMLRfMC documentation built on June 19, 2021, 12:25 a.m.