matrix_rsquared: matrix_rsquared

Description Usage Arguments Value Examples

View source: R/matrix_rsquared.R

Description

matrix_rsquared

Usage

1
matrix_rsquared(x1, x2, h, data)

Arguments

x1

the interval for x knot 1

x2

the interval for x knot 2

h

the size of the interval of each grid

data

the data of the linear model The function that finds the max r^2 withing the confidence interval using grid approximation

Value

returns x knot 1, x knot 2, and r^2

Examples

1
matrix_rsquared(x1, x2, 0.001, spruce.df)

cil0834/MATH4773CLAG documentation built on Sept. 26, 2020, 12:03 a.m.