--spearman
Switch
--spearman
Description
Returns Spearman correlation instead of Pearson R
Argument and Default Value
No argument. Boolean switch, default: False (Pearson).
Details
Applies to --correlate and anywhere else a correlation metric is chosen (see --IDP for the full metric priority order). Spearman is a rank correlation, so it is less sensitive to outliers and non-linear (but monotonic) relationships than Pearson R.
Other Switches
Required Switches: --correlate Optional Switches: None
Example Commands
Using the packaged dla_tutorial dataset (see Differential Language Analysis (DLA) Tutorial):
dlatkInterface.py -d dla_tutorial -t msgs -c user_id -f 'feat$cat_met_a30_2000_cp_w$msgs$user_id$16to16' \
--group_freq_thresh 500 --outcome_table blog_outcomes --outcomes age \
--outcome_controls gender is_student is_education \
--correlate --spearman --rmatrix --topic_tagcloud --topic_lexicon met_a30_2000_freq_t50ll \
--make_topic_wordclouds --p_correction simes --sort --tagcloud_colorscheme blue --output_name ./output