Learn R Programming

STAR (version 0.3-7)

coef.durationFit: Utility Functions for durationFit Objects

Description

coef.durationFit and logLik.durationFit extract components of a durationFit object, while is.durationFit tests if its argument is such an object.

Usage

"coef"(object,...) "logLik"(object,...) is.durationFit(obj)

Arguments

object
a durationFit object.
obj
an object to be tested against a durationFit object.
...
see coef and logLik.

Value

coef.durationFit returns the coefficients or the estimates or the fitted parameters of the object: a 2 elements named vector.logLik.durationFit returns the loglikelihood value.is.durationFit returns TRUE if its argument is a durationFit object and FALSE otherwise.

Details

Everything is trivial here.

See Also

compModels, invgaussMLE, lnormMLE, llogisMLE, rexpMLE, gammaMLE, weibullMLE

Examples

Run this code
## Not run: 
# ## load CAL1S data
# data(CAL1S)
# ## convert the data into spikeTrain objects
# CAL1S <- lapply(CAL1S,as.spikeTrain)
# ## look at the train of the 1sd neuron
# CAL1S[["neuron 1"]]
# ## fit a invgauss model to the 1st neuron spike train
# n1SDFig <- invgaussMLE(CAL1S[["neuron 1"]])
# is.durationFit(n1SDFig)
# coef(n1SDFig)
# logLik(n1SDFig)
# ## End(Not run)

Run the code above in your browser using DataLab