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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ndata.R

Description

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

Usage

1
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.

Author(s)

Rolf Turner r.turner@auckland.ac.nz

See Also

mleDb()

Examples

1
2
3
4
5
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)

dbd documentation built on Aug. 19, 2021, 5:07 p.m.

Related to ndata in dbd...