Collate multiple regression runs.

Description

This method makes a table of several regression runs side by side. The table has rows being phrases and the columns being the regression runs. A number is usually the weight found for that word at that window. If multiple runs have the same phrase, row will have multiple entries.

Usage

1
2
3
make.list.table(result.list, model.names = names(result.list), M = 100,
  topic = "Summary Collection", method = c("rank", "weight", "count",
  "word"), annotate = TRUE)

Arguments

result.list

List of mix of textreg.result objects and dataframes with two columns of "word" and "weight". (The latter is for merging lists from other regression packages.)

model.names

Names of the textreg.result objects

M

maximum number of words to keep

topic

String A name for the topic

method

Different ways to sort the phrases. 'word' means make a list of words.

annotate

Add summary statistics to table such as phrase counts, etc.

Details

Method will also order rows based on calculated importance of phrases. Multiple ways of ordering are possible, via the method argument.

Finally, the table can be annotated with descriptive statistics of the phrases.

Warning: this method DOES NOT flip negative weight words (so negative weight usually look less imporant in the ordering).

See the bathtub vignette for an example of this method.

Value

If annotate = true, a dataframe with each column corresponding to an textreg.result object (and possibly extra columns about phrases). Otherwise a matrix of the word scores.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.