View source: R/generateReport.R
generateReport | R Documentation |
Renders an Rmarkdown document to display the density function of each fitted distribution, the parameter values, and the R command required to sample from each distribution.
generateReport(
fit,
output_format = "html_document",
sf = 3,
expert = 1,
view = TRUE,
clean = TRUE
)
fit |
An object of class |
output_format |
the output format for the document. One of |
sf |
number of significant figures to be displayed for the fitted parameters. |
expert |
if the |
view |
set to |
clean |
set to |
## Not run:
# One expert, with elicited probabilities
# P(X<20)=0.25, P(X<30)=0.5, P(X<50)=0.75
# and X>0.
v <- c(20,30,50)
p <- c(0.25,0.5,0.75)
myfit <- fitdist(vals=v, probs=p, lower=0)
generateReport(myfit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.