File Coverage

blib/lib/CLI/Contingency/Table.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 13 15 86.6


line stmt bran cond sub pod time code
1             package CLI::Contingency::Table;
2              
3 1     1   54667 use 5.006;
  1         4  
4 1     1   12 use strict;
  1         1  
  1         16  
5 1     1   4 use warnings;
  1         15  
  1         77  
6              
7             =head1 NAME
8              
9             CLI::Contingency::Table - Command line programs for making a contingency tables in 1-way, 2-way.
10             Also provides Venn diagram drawing functions for 4 sets and for arbitrarily number of sets.
11              
12             You may know that to make a 1-way contingency table or frequency table in a unix-like environment
13             " sort | unic -c " is enough, but you may want to speedy response for large data or you may need
14             other related functions. The created command "freq" works well for that. "crosstable" is for
15             making 2-way contingency table.
16              
17             Provided commands (program files which work as command line interface):
18             freq -- to yiled 1-way contingency table
19             crosstable -- to yield 2-way contingency table
20             venn4 -- to draw the Venn diagram for 4 sets using rectangles.
21             venn -- to perform similar things to draw the Venn diagram for any number of sets (but < 10 is practical)
22             saikoro -- to generate random number from uniform distributions. Saikoro is a dice in Japanese.
23             csel -- to select out columns from tabular files such as in CSV, TSV format. Easier than "cut" and "awk".
24              
25             =head1 VERSION
26              
27             Version 0.51
28              
29             =cut
30              
31             our $VERSION = '0.51';
32              
33              
34             =head1 SYNOPSIS
35              
36             Quick summary of what the module does.
37              
38             Perhaps a little code snippet.
39              
40             use CLI::Contingency::Table;
41              
42             my $foo = CLI::Contingency::Table->new();
43             ...
44              
45             =head1 EXPORT
46              
47             A list of functions that can be exported. You can delete this section
48             if you don't export anything, such as for a purely object-oriented module.
49              
50             =head1 SUBROUTINES/METHODS
51              
52             =head2 function1
53              
54             =cut
55              
56       0 1   sub function1 {
57             }
58              
59             =head2 function2
60              
61             =cut
62              
63       0 1   sub function2 {
64             }
65              
66             =head1 AUTHOR
67              
68             "Toshiyuki Shimono", C<< >>
69              
70             =head1 BUGS
71              
72             Please report any bugs or feature requests to C, or through
73             the web interface at L. I will be notified, and then you'll
74             automatically be notified of progress on your bug as I make changes.
75              
76              
77              
78              
79             =head1 SUPPORT
80              
81             You can find documentation for this module with the perldoc command.
82              
83             perldoc CLI::Contingency::Table
84              
85              
86             You can also look for information at:
87              
88             =over 4
89              
90             =item * RT: CPAN's request tracker (report bugs here)
91              
92             L
93              
94             =item * AnnoCPAN: Annotated CPAN documentation
95              
96             L
97              
98             =item * CPAN Ratings
99              
100             L
101              
102             =item * Search CPAN
103              
104             L
105              
106             =back
107              
108              
109             =head1 ACKNOWLEDGEMENTS
110              
111              
112             =head1 LICENSE AND COPYRIGHT
113              
114             Copyright 2018 "Toshiyuki Shimono".
115              
116             This program is free software: you can redistribute it and/or modify
117             it under the terms of the GNU General Public License as published by
118             the Free Software Foundation, either version 3 of the License, or
119             (at your option) any later version.
120              
121             This program is distributed in the hope that it will be useful,
122             but WITHOUT ANY WARRANTY; without even the implied warranty of
123             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
124             GNU General Public License for more details.
125              
126             You should have received a copy of the GNU General Public License
127             along with this program. If not, see L.
128              
129              
130             =cut
131              
132             1; # End of CLI::Contingency::Table