--interaction_ddla

Switch

--interaction_ddla

Description

Finds features with significant interaction between language and argument, then does DLA on the two categories in the argument.

Argument and Default Value

A list of column names, separated by a space. There is no default value.

Details

Building off of --outcome_interaction, finds features in -f that have a significant interaction with the argument (i.e. the features for which the beta for is significant). It then performs DLA twice, one time per category in the argument, and for these runs it's equivalent to running DLA with outcomes and controls, with a feature whitelist. Except that in this case, only one command is needed, and the output will all be in one file.

Significance threshold is determined by the argument of --interaction_ddla_pvalue. The output will have two types of columns in the rmatrix: INTER[...] values from the first step where the interaction was performed. Only the features with significant betas will be used in the next steps [outcome]_0 or [outcome]_1 second and third steps, i.e. DLA with whitelist. Other switches

Required switches -d, -c, -t, -f, --outcome_table, --outcomes Example Commands ================ .. code:doc:fwflag_block:: python

# Finds the features that have a significant interaction between Extreme_Red_10000 (binary voting behavior) and the LIWC categories. # Using this list of features, it then does DLA (see --correlate) with controls twice: # Once on the groups that are republican (i.e. where Extreme_Red_10000 = 1) and once on the democrats ~/fwInterface.py -d twitterGH -t messages_en -c cty_id --group_freq_thresh 20000 -f 'feat$cat_LIWC2007$messages_en$cty_id$16to16' --outcome_table countyVotingSM2 --outcomes overall_LS --interaction_ddla Extreme_Red_10000 --outcome_controls Median_Age percent_white log_mean_income percent_bachelors --output_name ER10k.LIWC.interaction --rmatrix --sort fwflag_no_bonf --csv fwflag_interaction_ddla_p 0.05