nobs.kspm {KSPM} | R Documentation |
Extract the number of observations use to estimate the model coefficients. This is principally intented to be used in computing BIC (see extractAIC.kspm).
## S3 method for class 'kspm'
nobs(object, ...)
object |
an object of class "kspm", usually, a result of a call to |
... |
additional optional argument (currently unused). |
A single number (integer).
Catherine Schramm, Aurelie Labbe, Celia Greenwood
kspm for fitting model, extractAIC.kspm.
x <- 1:15
y <- 3*x + rnorm(15, 0, 2)
fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear"))
nobs(fit)