printProd {prodest} | R Documentation |
Print output - prod objects
Description
The printProd()
function accepts a list
of prod
class objects and returns a screen printed tabular in lateX format of the results.
Usage
printProd(mods, modnames = NULL, parnames = NULL, outfile = NULL,
ptime = FALSE, nboot = FALSE, screen = FALSE)
Arguments
mods |
a |
modnames |
an optional vector of model names. By default, model names are the |
parnames |
an optional vector of parameter names. By default, parameter names are the |
outfile |
optional string with the path and directory to store a text file (.txt, .tex, etc. depending on the specified extension) with the tabular. By default |
ptime |
add a row showing the computational time. By default |
nboot |
add a row showing the number of bootstrap repetitions. By default |
screen |
print the table on-screen without teX format. By default |
Value
The output of the function printProd
is either a screen printed tabular in lateX format of prod
object results or a text file tabular in lateX format of prod
object results.
Author(s)
Gabriele Rovigatti
Examples
data("chilean")
# run various models
WRDGfit <- prodestWRDG_GMM(chilean$Y, fX = cbind(chilean$fX1, chilean$fX2),
chilean$sX, chilean$pX, chilean$idvar, chilean$timevar)
OPfit <- prodestOP(chilean$Y, fX = cbind(chilean$fX1, chilean$fX2), chilean$sX,
chilean$pX, chilean$idvar, chilean$timevar)
# show the output in latex - tabular format
printProd(list(OPfit, WRDGfit), modnames = c('Olley-Pakes', 'Wooldridge'),
parnames = c('bunsk', 'bsk', 'bk'))
# show the output on-screen - no teX format
printProd(list(OPfit, WRDGfit), modnames = c('Olley-Pakes', 'Wooldridge'),
parnames = c('bunsk', 'bsk', 'bk'), screen = TRUE)