getTheta: getTheta Updates theta. Vectorized but only updates...

Description Usage Arguments Value

Description

getTheta Updates theta. Vectorized but only updates observations that have not converged.

Usage

1
2
getTheta(spt, f0, mu, sampprobs, ySptIndex, thetaStart = NULL,
  thetaControl = theta.control())

Arguments

spt

Support of the observed response variable. (This is the set of unique values observed, not the set of all possible values.)

f0

Values of the baseline distribution corresponding to the values of spt

mu

The fitted mean for each observation. Note these values must lie strictly within the range of the support.

sampprobs

Matrix of sampling probabilities. The number of rows should equal the number of observations, and the number of columns should equal the number of unique observed support points.

ySptIndex

Vector containing index of each obervation's response value within the spt vector. This is only needed to calculate the log-likelihood after each update.

thetaStart

Vector of starting values. One value per observation. If NULL, zero is used as the starting value for each observation.

thetaControl

Object of class thetaControl, which is a list of control arguments returned by the thetaControl function.

Value

List containing the following:


gldrm documentation built on May 2, 2019, 12:59 p.m.

Related to getTheta in gldrm...