Learn R Programming

tweeDEseq (version 1.18.0)

Methods for objects of class 'mlePT': Methods for objects of class 'mlePT'

Description

print, extract loglikelihood or compute confidence interval for an object of class 'mlePT'.

Usage

"print"(x, digits = 3, ...) "logLik"(object, ...) "confint"(object, parm, level = 0.95, ...)

Arguments

x
object of class 'mlePT'.
object
object of class 'mlePT'.
digits
integer scalar giving the number of digits to be rounded the solution.
parm
a specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered.
level
the confidence level required (default is 0.95).
...
additional arguments.

Value

'logLik' returns the loglikelihood of the selected model.'confint' returns a matrix (or vector) with columns giving lower and upper confidence limits for each parameter.

See Also

mlePoissonTweedie

Examples

Run this code
# Load and aggregate the 'seizure' database
data(seizure)
aggCounts <- aggregate(x = cbind(seizure$count, seizure$trx), by =
list(seizure$id), FUN = sum)

# Estimate the parameters
mleSeizure <- mlePoissonTweedie(x = aggCounts[,2], a.ini = 0, D.ini =
10)

# Print
mleSeizure

# Extract loglikelihood
logLik(mleSeizure)

# Compute confidence inerval
confint(mleSeizure)

Run the code above in your browser using DataLab