methods: Methods for displaying information about high-dimensional...

Description Usage Arguments Examples

Description

print.hgam is used to display some information about the fitted GAMs. plot.hgam plot the marginal effects of the two selected covariates. fitted.hgam is used to predict the original data with the fitted GAM model. coef.hgam is used to display the fitted coefficients. predict.hgam is used to predict (new) data with the fitted GAM model. logLik.hgam is used to display the value of the log likelihood function. print.hrisk is used to display the results of the hrisk function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S3 method for class 'hgam'
print(x, ...)
## S3 method for class 'hgam'
plot(x, which = NULL, newdata = NULL,
     rug = TRUE, multidim = FALSE, ...)
## S3 method for class 'hgam'
fitted(object, ...)
## S3 method for class 'hgam'
coef(object, ...)
## S3 method for class 'hgam'
predict(object, newdata = NULL, which = NULL, intercept = NULL, ...)
## S3 method for class 'hgam'
logLik(object, ...)
## S3 method for class 'hrisk'
print(h, ...)

Arguments

x

an object of class hgam

object

an object of class hgam

newdata

a data frame. If newdata = NULL then original data will be used.

which

which covariate to be predicted. Character or integer can both be used. If which = NULL all predictors will be used.

multidim

when multidim = TRUE the marginal effects of the two selected covariates is plotted in a three-dimensional grid.

intercept

boolean or NULL. If intercept = NULL then the function uses the same intercept options as specified in hgam.

h

an object of the class hrisk.

rug

logical, add rugs to plots.

...

ignored.

Examples

1
2
3
4
5
6
7
8
9
test.d <- dgp(1000)
test.m <- hgam(y ~ ., data = test.d)

print(test.m)
coef(test.m)
fitted(test.m)
predict(test.m)
logLik(test.m)
plot(test.m, which = c("x1", "x2"), multidim = TRUE)

hgam documentation built on May 2, 2019, 5 p.m.