Description Usage Arguments Details Value Author(s) Examples
View source: R/Cobb_and_Douglas.R
This function allows you to compute a Cobb-Douglas production/ utility function with n inputs/goods.
1 |
I |
is a vector of inputs |
Elas |
is a vector of elasticities, must be the same length as I. Defaults to equal elasticities to all inputs, with sum of elasticities equal to 1. |
K |
is the constant of the model. Defaults to 1. |
cobb_douglas_2 computes what - mathematically - is a particular case of this function, but computationally there are differentes. Here, the user must input two vectors, one for elasticies and one for quantities, whereas in cobb_douglas_2, the user specifies only quantities and elasticities are taken as parameters.
A list with output, function's degree of homogeneity.
Pedro Cavalcante Oliveira, Department of Economics, Fluminense Federal University
1 2 3 | I <- c(3, 4, 5)
cobb_douglas(I)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.