regpoly1: Regression: Regpoly1
Description
First order polynomial regression function.
Usage
regpoly1(S, grad = FALSE)
Arguments
S
m*n matrix with m
design points of dimension n
grad
define if function returns gradient, default is FALSE
Value
returns a list with two elements:
f
matrix of two columns:
1. vector of ones with length m
2. S
df
Jacobian at the first point (first row in S)