Plot RSSs of a CES Function Estimated by Grid Search
Plot a scatter plot, where the values of rho are on the x axis and the corresponding sums of the squared residuals obtained by a grid search for rho are on the y axis. Estimations that did not converge are marked with red.
Note that this method can be applied
only if the model was estimated by a grid search for rho,
cesEst was called with argument
set to a vector of more than one values for rho.
object returned by
logical. Indicates whether the negative sum of squared residuals should be plotted in 3D plots (ignored in 2D plots).
logical. Indicates whether 3D plots should be in black-and-white or colored.
All further arguments are passed
Arne Henningsen and Geraldine Henningsen
1 2 3 4 5 6 7 8 9 10 11 12 13
data( germanFarms, package = "micEcon" ) # output quantity: germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput # quantity of intermediate inputs germanFarms$qVarInput <- germanFarms$vVarInput / germanFarms$pVarInput ## CES: Land & Intermediate Inputs cesLandInt <- cesEst( yName = "qOutput", xNames = c( "land", "qVarInput" ), data = germanFarms, rho = seq( from = -0.6, to = 0.9, by = 0.3 ) ) # plot the rhos against the sum of squared residuals plot( cesLandInt )
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.