Skip to contents

Runs all eight LTA trait functions at once and returns a single combined tibble. The eight traits are: power, affiliation, distrust, conceptual complexity, task orientation, self-confidence, nationalism, and control.

Usage

get_lta(own_entity, text, bootstrap = FALSE, B = 1000)

Arguments

own_entity

A character string identifying the speaker's country or entity (e.g., "United States").

text

A character string containing the speech text to analyse.

bootstrap

Logical. If TRUE, returns bootstrap means and variances instead of raw counts. Default is FALSE.

B

Number of bootstrap iterations. Default is 1000.

Value

A one-row tibble::tibble.

When bootstrap = FALSE, columns include raw counts (P, OP, A, OA, S, OS, HC, LC, TI, IP, SC, OSC, N, ON, IC, OC) plus trait proportions (Pp, D, C, Ta, Ss, Na, B).

When bootstrap = TRUE, columns include bootstrap means and variances for the raw counts (meanP, varP, meanOP, varOP, ...) plus trait proportions and their delta-method variances (Pp, varPp, D, varD, C, varC, Ta, varTa, Ss, varSs, Na, varNa, B, varB).

Examples

if (FALSE) { # \dontrun{
spacyr::spacy_initialize()
get_lta(own_entity = "United States", text = "We will defend our nation.")
get_lta(own_entity = "United States", text = "We will defend our nation.",
        bootstrap = TRUE, B = 500)
} # }