Description Usage Arguments Value Author(s) See Also Examples
Retrieve the number of (non-missing) values in the data set
to which an "mleDb"
object was fitted.
1 | ndata(object)
|
object |
An object of class |
Integer scalar equal to the number of (non-missing) values in
the data set to which object
was fitted.
Rolf Turner r.turner@auckland.ac.nz
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.