exportToExcel( .postestimation_object = NULL, .filename = "results.xlsx", .path = NULL )
An object resulting from a call to one of cSEM's
postestimation functions (e.g.
Character string. The file name. Defaults to "results.xlsx".
Character string. Path of the directory to save the file to. Defaults to the current working directory.
The function is deliberately kept simple: all it does is to take all the
relevant elements in
.postestimation_object and write them (worksheet by worksheet) into
an .xlsx file named
.filename in the directory given by
.path (the current
working directory by default).
.postestimation_object has class attribute
_2ndorder two .xlsx files
are created. If
.postestimation_object is a list of appropriate objects,
one file for each list elements is created.
exportToExcel() without changing
overwrites the file!