Learn R Programming

dbd (version 0.0-22)

ndata: Retrieve the "ndata" attribute of an "mleDb" object.

Description

Retrieve the number of (non-missing) values in the data set to which an "mleDb" object was fitted.

Usage

ndata(object)

Arguments

object

An object of class "mleDb" as returned by mleDb().

Value

Integer scalar equal to the number of (non-missing) values in the data set to which object was fitted.

See Also

mleDb()

Examples

Run this code
# NOT RUN {
X <- hmm.discnp::SydColDisc
X$y <- as.numeric(X$y)
X <- split(X,f=with(X,interaction(locn,depth)))
fitz <- lapply(X,function(x){mleDb(x$y,ntop=5)})
sapply(fitz,ndata)
# }

Run the code above in your browser using DataLab