ndata {dbd} | R Documentation |
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 |
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
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)
[Package dbd version 0.0-22 Index]