Description Usage Arguments Value
getStandardErrors
uses optimHess
to
numerically compute the hessian at the value of the
estimated MLE, which can be obtained using
EM.run
. The function inverts the hessian
and takes the square root of diagonal entries to yield
standard errors for each coefficient estimate.
1 2 | getStandardErrors(betas, t.pat, num.patients,
PATIENTDATA, patients.design, s1.seq, s2.seq)
|
betas |
A vector of numbers \mathbfβ = (\mathbfβ^λ, \mathbfβ^ν, \mathbfβ^μ) |
t.pat |
A number, the observation interval length |
num.patients |
An integer, number of unique patients |
PATIENTDATA |
A matrix in the form returned by
|
patients.design |
A design matrix in the same form
as returned by |
s1.seq |
A vector of complex arguments evenly spaced along the unit circle |
s2.seq |
A vector of complex arguments evenly spaced along the unit circle |
A vector the length of the coefficient vector, giving standard errors for each estimated coefficient
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.