Just like the older version of head.dfm(), summary.textmodel_wordfish_fitted() prints model parameters. It should only return values just like summary.lm().
ieWF <- dfm(data_corpus_irishbudget2010, removePunct = TRUE) %>%
textmodel_wordfish(dir = c(6,5))
textplot_scale1d(ieWF)
out <- summary(ieWF)
# Call:
# textmodel_wordfish.dfm(x = ., dir = c(6, 5))
#
# Estimated document positions:
# theta SE lower upper
# 2010_BUDGET_01_Brian_Lenihan_FF 1.8209535 0.02032345 1.78111954 1.86078748
# 2010_BUDGET_02_Richard_Bruton_FG -0.5932779 0.02818836 -0.64852708 -0.53802872
# 2010_BUDGET_03_Joan_Burton_LAB -1.1136753 0.01540256 -1.14386429 -1.08348625
# 2010_BUDGET_04_Arthur_Morgan_SF -0.1219325 0.02846319 -0.17772032 -0.06614462
# 2010_BUDGET_05_Brian_Cowen_FF 1.7724224 0.02364097 1.72608615 1.81875874
# 2010_BUDGET_06_Enda_Kenny_FG -0.7145784 0.02650254 -0.76652337 -0.66263342
# 2010_BUDGET_07_Kieran_ODonnell_FG -0.4844821 0.04171476 -0.56624299 -0.40272114
# 2010_BUDGET_08_Eamon_Gilmore_LAB -0.5616713 0.02967351 -0.61983141 -0.50351124
# 2010_BUDGET_09_Michael_Higgins_LAB -0.9703106 0.03850541 -1.04578121 -0.89484000
# 2010_BUDGET_10_Ruairi_Quinn_LAB -0.9589229 0.03892373 -1.03521343 -0.88263242
# 2010_BUDGET_11_John_Gormley_Green 1.1807220 0.07221463 1.03918133 1.32226270
# 2010_BUDGET_12_Eamon_Ryan_Green 0.1866457 0.06294119 0.06328093 0.31001039
# 2010_BUDGET_13_Ciaran_Cuffe_Green 0.7421895 0.07245436 0.60017891 0.88420001
# 2010_BUDGET_14_Caoimhghin_OCaolain_SF -0.1840821 0.03666256 -0.25594076 -0.11222351
summary.textmodel_wordscores_fitted() is also wrong in the same way.
Just like the older version of
head.dfm(),summary.textmodel_wordfish_fitted()prints model parameters. It should only return values just likesummary.lm().summary.textmodel_wordscores_fitted()is also wrong in the same way.