Description Usage Arguments Value Author(s) See Also Examples
View source: R/residuals.snqProfitEst.R
Extract the residuals from the estimation of a Symmetric Normalized Quadratic (SNQ) profit function.
1 2 3 4 5 |
object |
an object of type |
scaled |
logical. Return scaled quantities? |
... |
currently not used. |
residuals.snqProfitEst
and residuals.snqProfitEst
return a
dataframe that contains the residuals for each netput and the profit.
Arne Henningsen
snqProfitEst
, snqProfitImposeConvexity
and residuals
1 2 3 4 5 6 7 8 9 10 | data( germanFarms, package = "micEcon" )
germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput
germanFarms$qVarInput <- -germanFarms$vVarInput / germanFarms$pVarInput
germanFarms$qLabor <- -germanFarms$qLabor
germanFarms$time <- c( 0:19 )
priceNames <- c( "pOutput", "pVarInput", "pLabor" )
quantNames <- c( "qOutput", "qVarInput", "qLabor" )
estResult <- snqProfitEst( priceNames, quantNames, c("land","time"), data=germanFarms )
residuals( estResult )
residuals( estResult, scaled = FALSE )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.