| getTheta | R Documentation |
getTheta Updates theta. Vectorized but only updates observations that have not converged.
getTheta(
spt,
f0,
mu,
sampprobs,
ySptIndex,
thetaStart = NULL,
thetaControl = theta.control()
)
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 |
thetaStart |
Vector of starting values. One value per observation. If
|
thetaControl |
Object of class |
List containing the following:
theta Updated values.
fTilt Matrix containing the exponentially tilted distribution for each
observation, i.e. f(y|X=x). Each column corresponds to an observation and sums to one.
bPrime Vector containing the mean of the exponentially tilted distribution
for each observation. Should match mu argument very closely.
bPrime2 Vector containing the variance of the exponentially tilted
distribution for each observation.
fTiltSW Matrix containing the exponentially tilted distribution for each
observation, conditional on that observation being sampled, i.e. f(y|X=x, S=1).
If sampprobs=NULL, then fTiltSW matches fTilt.
bPrimeSW Vector containing the mean for each observation, conditional
on that observation being sampled. If sampprobs=NULL, then bPrimeSW
matches bPrime.
bPrime2SW Vector containing the variance for each observation, conditional
on that observation being sampled. If sampprobs=NULL, then bPrime2SW
matches bPrime2.
llik Semiparametric log-likelihood, evaluated at the current beta
and f0 values. If sampling weights are used, then the log-likelihood is conditional
on each observation being sampled.
conv Convergence indicator.
iter Number of iterations until convergence was reached.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.