Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

criaModeloGenerico

Create function with generic model


Description

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

Usage

criaModeloGenerico(nome, formula, funcaoRegressao, variaveis,
  palpite = NULL, maisParametros = NULL, requires = NULL)

Arguments

nome

is the name of model

formula

is the string formula begin with y2~y1

funcaoRegressao

is the function that will make the regression, ex.: 'nlsLM'

variaveis

list variables that are present in the model that are field database

palpite

param start of funcaoRegressao

maisParametros

string add in funcaoRegressao, ex lm(y2~y1, data=base, maisParametros)

requires

list of string of packges used to work with funcaoRegressao

Value

will be returned function with generic model to map to a base


Fgmutils

Forest Growth Model Utilities

v0.9.5
GPL-2
Authors
Clayton Vieira Fraga Filho, Ana Paula Simiqueli, Gilson Fernandes da Silva, Miqueias Fernandes, Wagner Amorim da Silva Altoe
Initial release
2018-10-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.