blib/lib/CLI/Contingency/Table.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 88.2% 15 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package CLI::Contingency::Table;
2  
3 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
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.53
28  
29 =cut
30  
31 1 our $VERSION = '0.53';
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 ▶sub function1 {
Subroutine function1: not called CC=1 SCAR=0.0
Pod documented
57 }
58  
59 =head2 function2
60  
61 =cut
62  
63 0 ▶sub function2 {
Subroutine function2: not called CC=1 SCAR=0.0
Pod documented
64 }
65  
66 =head1 AUTHOR
67  
68 "Toshiyuki Shimono", C<< <bin4tsv at gmail.com> >>
69  
70 =head1 BUGS
71  
72 Please report any bugs or feature requests to C<bug-cli-contingency-table at rt.cpan.org>, or through
73 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CLI-Contingency-Table>. 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<http://rt.cpan.org/NoAuth/Bugs.html?Dist=CLI-Contingency-Table>
93  
94 =item * AnnoCPAN: Annotated CPAN documentation
95  
96 L<http://annocpan.org/dist/CLI-Contingency-Table>
97  
98 =item * CPAN Ratings
99  
100 L<http://cpanratings.perl.org/d/CLI-Contingency-Table>
101  
102 =item * Search CPAN
103  
104 L<http://search.cpan.org/dist/CLI-Contingency-Table/>
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<http://www.gnu.org/licenses/>.
128  
129  
130 =cut
131  
132 1 1; # End of CLI::Contingency::Table
↑ Summary