finalOPLP
is the function linking the data cleaning part of the routine with the final function to be bootstrapped.
finalOPLP(ind, data, fnum, snum, cnum, opt, theta0, boot, tol, att)
Vector of indices to reshuffle the data.
data.frame
with the data to perform the estimation on.
Number of free variables.
Number of state variables.
Number of control variables.
String with the optimizer.
Vector of starting points.
Binary indicator for the estimation routine being the baseline estimation or a bootstrap repetition.
Optimization tolerance set.
Indicator for attrition in the data - i.e., if firms exit the market.
finalOPLP()
accepts at 9 inputs: a vector of reshuffled indices, the data.frame
with the data, the number of free, state and control variables, the starting points, the optimizer, an indicator for bootstrapped repetitions and the optimization tolerance. It collects the results of gACF()
function - baseline and bootstrapped - calculates the standard errors and stores all in a prod
object.