tidy: Tidy

tidy.harsmR Documentation

Tidy

Description

Tidy a harsm, hensm or linodds model.

Usage

## S3 method for class 'harsm'
tidy(x, ...)

## S3 method for class 'hensm'
tidy(x, ...)

Arguments

x

an object of type harsm or hensm

...

arguments for generic consistency.

Details

Returns a table with information on the fit coefficients and standard errors of an estimated Harville or Henery model.

Value

A tidy tibble::tibble() with fields

term

The name of the estimated parameter. Betas typically come before gammas.

estimate

The estimated parameter.

std.error

The standard error of the estimate.

statistic

The z-statistic of the estimate.

Author(s)

Steven E. Pav shabbychef@gmail.com

See Also

tidy.maxLik.

Examples


# 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))


ohenery documentation built on Sept. 9, 2025, 5:56 p.m.