fitdistr_tidiers {broom} | R Documentation |
These methods tidies the parameter estimates resulting from an estimation of a univariate distribution's parameters.
## S3 method for class 'fitdistr' tidy(x, ...) ## S3 method for class 'fitdistr' glance(x, ...)
x |
An object of class "fitdistr" |
... |
extra arguments (not used) |
All tidying methods return a data.frame without rownames, whose structure depends on the method chosen.
tidy.fitdistr
returns one row for each parameter that
was estimated, with columns:
term |
The term that was estimated |
estimate |
Estimated value |
std.error |
Standard error of estimate |
glance.fitdistr
returns a one-row data.frame with the columns
n |
Number of observations used in estimation |
logLik |
log-likelihood of estimated data |
AIC |
Akaike Information Criterion |
BIC |
Bayesian Information Criterion |
set.seed(2015) x <- rnorm(100, 5, 2) library(MASS) fit <- fitdistr(x, dnorm, list(mean = 3, sd = 1)) tidy(fit) glance(fit)