# Least Square Regression with Polynomial Terms als Predictors and Changes as Dependent Variable (Internal Function)

### Description

`polyfitreg`

is a modeling function internally called in the code `bdynsys`

dysymod as well as in `bdynsys`

dysymodbestfitmod. It computes the values for the independed variables, based on polynomial terms and computes all possible regression models with all possible combinations of these independ variables (all possible combinations of polynimal terms) and the changes in the dependent variables which are to be predicted. The function estimates the Betas, computes the Sum Square of Error of all possible models as well as their Log Likelihood and R-squares. It returns internally the Sum Square of Error matrices to `bdynsys`

dysymodbestfit and Betas to `bdynsys`

dysymod.Log Likelihood and R-square are printed.

### Author(s)

Viktoria Spaiser: viktoria.sp@web.de

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.