Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_constant

Add a constant to estimated values


Description

Add a constant to estimated values

Add a constant to estimated values

Usage

add_constant(object, constant = NULL, ...)

## S3 method for class 'evaluated_smooth'
add_constant(object, constant = NULL, ...)

## S3 method for class 'mgcv_smooth'
add_constant(object, constant = NULL, ...)

## S3 method for class 'evaluated_parametric_term'
add_constant(object, constant = NULL, ...)

add_constant(object, constant = NULL, ...)

## S3 method for class 'evaluated_smooth'
add_constant(object, constant = NULL, ...)

## S3 method for class 'evaluated_parametric_term'
add_constant(object, constant = NULL, ...)

Arguments

object

a object to add a constant to.

constant

the constant to add.

...

additional arguments passed to methods.

Value

Returns object but with the estimate shifted by the addition of the supplied constant.

Returns object but with the estimate shifted by the addition of the supplied constant.

Author(s)

Gavin L. Simpson

Gavin L. Simpson


gratia

Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'

v0.6.0
MIT + file LICENSE
Authors
Gavin L. Simpson [aut, cre] (<https://orcid.org/0000-0002-9084-8413>), Henrik Singmann [ctb] (<https://orcid.org/0000-0002-4842-3657>)
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.