Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Update to program - tuples - on SSC


From   Joseph Luchman <[email protected]>
To   statalist <[email protected]>
Subject   st: Update to program - tuples - on SSC
Date   Sat, 22 Mar 2014 20:35:49 -0700

With many thanks to Kit Baum, an update to the program - tuples - is
available on SSC.

The update to the - tuples - program now allows users to, in addition
to selecting the max() potion setting a ceiling on the maximum number
of items in a tuple, select a min() option setting a floor for the
minimum number of items in a tuple.

Thus, if a user wanted only the tuples including at least 2 items in
the list "frog toad newt," the user could type

tuples frog toad newt, min(2) display

Which would produce the result:

tuple1: toad newt
tuple2: frog newt
tuple3: frog toad
tuple4: frog toad newt

The min() and max() option can of course be combined as well to obtain
tuples within a certain range as well - such as all tuples of size 6
in a list of 10 items, accomplished by combining min(6) with max(6) as
options.

Many thanks to Volodymyr Vovchack for the suggestion to include the
min() option.

To update type:

adoupdate tuples, update

- joe

Joseph Nicholas Luchman, Ph.D.
----
Behavioral Statistics Lead | Fors Marsh Group
Email: [email protected]
forsmarshgroup.com
https://www.researchgate.net/profile/Joseph_Luchman/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index