Skip to content

Commit

Permalink
Per #2887, update stat_analysis to parse the TOTAL column for the PCT…
Browse files Browse the repository at this point in the history
… and MCTC line types.
  • Loading branch information
JohnHalleyGotway committed Oct 7, 2024
1 parent e44a100 commit 8e3e6c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tools/core/stat_analysis/parse_stat_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ void parse_mctc_ctable(STATLine &l, ContingencyTable &ct) {
int n_cat, i, j;
char col_str[max_str_len];

// Npairs
ct.set_n_pairs(atoi(l.get_item("TOTAL")));

// N_CAT
n_cat = atoi(l.get_item("N_CAT"));
ct.set_size(n_cat);
Expand Down Expand Up @@ -161,6 +164,9 @@ void parse_nx2_ctable(STATLine &l, Nx2ContingencyTable &pct) {
int i, n, oy, on;
char col_str[max_str_len];

// Npairs
pct.set_n_pairs(atoi(l.get_item("TOTAL")));

// N_THRESH
n = atoi(l.get_item("N_THRESH"));
pct.set_size(n-1);
Expand Down

0 comments on commit 8e3e6c7

Please sign in to comment.