effectTypes {gamselBayes} | R Documentation |
Tabulate the estimated effect types from a Bayesian generalized additive model object
Description
Produces a tabular summary of the estimated effect types from a gamselBayes() fit object.
Usage
effectTypes(fitObject)
Arguments
fitObject |
|
Details
Two tables are printed to standard output. The first table lists the names of the predictors that are estimated as having a linear effect. The second table lists the names of the predictors that are estimated as having a nonlinear effect.
Value
Nothing is returned.
Author(s)
Virginia X. He virginia.x.he@student.uts.edu.au and Matt P. Wand matt.wand@uts.edu.au
Examples
library(gamselBayes)
# Generate some simple regression-type data:
set.seed(1) ; n <- 1000 ; x1 <- rbinom(n,1,0.5)
x2 <- runif(n) ; x3 <- runif(n) ; x4 <- runif(n)
y <- x1 + sin(2*pi*x2) - x3 + rnorm(n)
Xlinear <- data.frame(x1) ; Xgeneral <- data.frame(x2,x3,x4)
# Obtain a gamselBayes() fit for the data:
fit <- gamselBayes(y,Xlinear,Xgeneral)
# Tabulate the estimated effect types:
effectTypes(fit)
[Package gamselBayes version 2.0-1 Index]