Description Usage Arguments Value Examples
extracts fitted values from a Partial Splines Model
1 2 | ## S3 method for class 'PSM'
fitted(object)
|
object |
an object of class 'PSM' |
returns a vector containing fitted values
1 2 3 4 5 6 | x <- data.frame(x = rnorm(100))
tx <- rnorm(100)
eps <- rnorm(100)
y <- x[,1] + tx^4 + eps
psm <- PartialSplines(y, x, tx)
fitted(psm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.