Learn R Programming

iprior (version 0.6.1)

slope: Recover the betas (slopes) of the regression curves

Description

Since an I-prior model does not deal with the betas (slopes or coefficients of an ordinary linear model), this function calculates the slopes of the regression curves based on the fitted values. While it is meant for Canonical RKHS functions, it still works for FBM RKHS, in that the slopes returned would be the "average" slope, i.e. the slope of the fitted straight line through the fitted I-prior values. Currently, only models with one explanatory variable are supported.

Usage

slope(object)

Arguments

object
Object of class "ipriorMod"

Value

The slopes of the fitted regression curves.

Examples

Run this code
mod.iprior <- iprior(stack.loss ~ Air.Flow, data = stackloss)
slope(mod.iprior)

Run the code above in your browser using DataLab