Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/Read.Utilities.R
Builds utility functions from definition standard.
1 | Read.Utilities(file, script, lines, skip = 2, encoding = "utf-8")
|
file |
standardize file with definitions. |
script |
output script where the utility functions are defined automatically. |
lines |
number lines to read in |
skip |
to read the |
encoding |
file encoding. |
The basic MAUT models are built with functions of constant absolute risk aversion, this functions could be defined with simple parameters, only is necessary a function name and the domain of definition of every function and more important is necessary no more than three coefficients for the function definition.
Returns data table with definition of utility functions by range.
Pedro Guarderas, Andr<c3><a9>s Lopez
1 2 3 4 5 6 7 | library( data.table )
file<-system.file("extdata", "utilities.txt", package = "mau" )
script<-'utilities.R'
lines<-17
skip<-2
encoding<-'utf-8'
functions<-Read.Utilities( file, script, lines, skip, encoding )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.