tidy.harsm | R Documentation |
Tidy a harsm, hensm or linodds model.
## S3 method for class 'harsm'
tidy(x, ...)
## S3 method for class 'hensm'
tidy(x, ...)
x |
an object of type |
... |
arguments for generic consistency. |
Returns a table with information on the fit coefficients and standard errors of an estimated Harville or Henery model.
A tidy tibble::tibble()
with fields
The name of the estimated parameter. Betas typically come before gammas.
The estimated parameter.
The standard error of the estimate.
The z-statistic of the estimate.
Steven E. Pav shabbychef@gmail.com
tidy.maxLik
.
# softmax on the Best Picture data
data(best_picture)
df <- best_picture
df$place <- ifelse(df$winner,1,2)
df$weight <- ifelse(df$winner,1,0)
fmla <- place ~ nominated_for_BestDirector + nominated_for_BestActor + Drama
fit0 <- harsm(fmla,data=df,group=year,weights=weight)
print(tidy(fit0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.