This function creates a generic model that will be a funcao that has parameters for the variables that can be mapped to each different base. her return will be a generic model that should be mapped to be used by the function avaliaEstimativas
criaModeloGenerico(nome, formula, funcaoRegressao, variaveis,
palpite = NULL, maisParametros = NULL, requires = NULL)
is the name of model
is the string formula begin with y2~y1
is the function that will make the regression, ex.: 'nlsLM'
list variables that are present in the model that are field database
param start of funcaoRegressao
string add in funcaoRegressao, ex lm(y2~y1, data=base, maisParametros)
list of string of packges used to work with funcaoRegressao
will be returned function with generic model to map to a base