linear_gd_optim_old: linear_gd_optim_old

Description Usage Arguments Value

View source: R/linear_gd_optim_old.R

Description

This function provides a personalized way for optimizing functions

Usage

1
2
3
4
5
6
7
8
9
linear_gd_optim_old(
  par,
  X,
  Y,
  tolerance = 1e-06,
  maxit = 10000,
  stepsize = 0.001,
  verbose = T
)

Arguments

par

Initial values.

X

Data predictiors.

Y

Response variables.

tolerance

Value for the stopping criterion. The default value is set to 1e-6.

maxit

Maximum iterations allowed. The default value is set to 10000.

stepsize

Length of the stepsize parameter. The default value is set to 1e-3.

verbose

If set TRUE the function produce messages during the computation.

Value

Vector containing the estimated parameters.


lucaaiello/myOpt documentation built on Dec. 21, 2021, 11:51 a.m.