Description Usage Arguments Details Value
Function uses Nelder-Mead optimization as implemented in
optim
to maximize the log likelihood function
logFFT.patients
.
1 2 | FFT.pat.optim(betaInit, t.pat, num.patients, PATIENTDATA,
patients.design, s1.seq, s2.seq, tol, max)
|
betaInit |
A vector, the initial guess for the algorithm |
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 |
tol |
A number for setting the relative tolerance
for the algorithm (the reltol argument in |
max |
An integer, the max number of iterations before termination |
Example code is not included here because of runtime; see vignette for tutorial on using this function.
An optim
type object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.