summary.sop | R Documentation |
Summary method for a fitted SOP model.
## S3 method for class 'sop'
summary(object, ...)
object |
an object of class |
... |
further arguments passed to or from other methods. Not yet implemented. |
The function summary.sop
computes and returns a list of summary statistics of the fitted model given in object
, using the components (list elements) "call"
and "terms"
from its argument, plus
call |
the matched call. |
b.random |
a vector with the predicted random effects coefficients. |
b.fixed |
a vector with the estimated fixed effects coefficients. |
r.sq.adj |
the (adjusted)
where |
deviance |
the deviance. |
null.deviance |
the null deviance. |
dev.expl |
proportion of the null deviance explained by the model. |
n |
number of data. |
iter |
number of iterations. |
residual.df |
residual degrees of freedom. |
edf |
a vector with the estimated degrees of freedom for the (smooth and random) model terms. |
formula |
the model formula. |
family |
the family used. |
na.action |
vector with the observations (position) deleted due to missingness. |
sop
, summary
library(SOP)
# Simulate the data
set.seed(123)
n <- 1000
sigma <- 0.5
x <- runif(n)
f0 <- function(x) 2*sin(pi*x)
f <- f0(x)
y <- f + rnorm(n, 0, sigma)
dat <- data.frame(x = x, y = y)
# Fit the model
m0 <- sop(formula = y ~ f(x, nseg = 10), data = dat)
summary(m0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.