MGPS_uni_opt: HGZIPS - MGPS (uniroot-optimization)

Description Usage Arguments Value

View source: R/MGPS_uni_opt.R

Description

This MGPS function.........

Usage

1
2
3
ProfileLogLik(alpha, Tij, weight, N, E)

MGPS_uni_opt(alpha.par, beta.par, pi.par, N, E, weight, iterations, Loglik)

Arguments

weight

set weight = rep(1, length(N)) if N and E are not squashed data, or input the weight vector corresponding to the squashed Nij vector.

N

squashed N_ij data (vector). This data can be generated by the rawProcessing function in this package.

E

squashed E_ij data (vector). This data can be generated by the rawProcessing function in this package.

alpha.par

initial shape parameter vector of the two gamma distributions for implementing the EM algprithm

beta.par

initial rate parameter vector of the two gamma distributions for implementing the EM algprithm

pi.par

initial xxxxxxx?

iterations

number of EM algorithm iterations to run

Loglik

whether to return the loglikelihood of each iteration or not (TRUE or FALSE)

Value

a list of estimated parameters and their corresponding loglikelihood


sidiwang/hgzips documentation built on Jan. 19, 2021, 4:09 p.m.