printReport | R Documentation |
Prepares a summary of the fitting as csv or shiny
printReport(x, file = NULL, type = "csv")
x |
The output of |
file |
A character string giving the filename (including path) where the report should be printed |
type |
A character vector giving the desired type(s) of output |
The routine generates a simple csv file, which is the most useful output in terms of reusability. However, the shiny output is more powerful and provides an overview of the statistics and a figure for visual/manual exploration of the fits. Irrspective of output type being “csv” or “shiny”, the fit-table has the following format
package name
name of the distribution
number of parameters
names of parameters, comma-seperated list
estimated values of parameters, comma-seperated list
start values of parameters, comma-seperated list
were constraints used, logical
the runtime in milliseconds
test statistic $D$ of a two-sided, two-sample Kolmogorov-Smirnov test
$P$-value of a two-sided, two-sample Kolmogorov-Smirnov test
test statistic of a Shapiro-Wilks test
$P$-value of a Shapiro-Wilks test
A list with items
table |
A |
shiny |
if |
Markus Boenn
# discrete empirical data x <- rnbinom(100, 0.5, 0.2) r <- fitter(x, dom="dis", posList=list(stats=NA)) # create only 'shiny' app out <- printReport(r, type="shiny") names(out) ## Not run: out$shiny out <- printReport(r, type=c("csv")) # warning as 'file' is NULL, str(out) # but table (data.frame) returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.