get_coef.GPModel: Get (estimated) linear regression coefficients

get_coef.GPModelR Documentation

Get (estimated) linear regression coefficients

Description

Get (estimated) linear regression coefficients and standard errors (if std_err=TRUE)

Usage

## S3 method for class 'GPModel'
get_coef(gp_model, std_err = FALSE)

Arguments

gp_model

A GPModel

std_err

A boolean. If TRUE, (approximate) standard errors are calculated (= square root of diagonal of the inverse Fisher information for Gaussian likelihoods and square root of diagonal of a numerically approximated inverse Hessian for non-Gaussian likelihoods)

Value

A GPModel

Author(s)

Fabio Sigrist

Examples


data(GPBoost_data, package = "gpboost")
X1 <- cbind(rep(1,dim(X)[1]),X) # Add intercept column
gp_model <- fitGPModel(group_data = group_data[,1], y = y, X = X1, likelihood="gaussian")
get_coef(gp_model)


gpboost documentation built on Nov. 7, 2025, 5:06 p.m.