Python spssaux2.gencategorylist question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Python spssaux2.gencategorylist question

Juan Pablo Sandoval
Hi:

I was working with Python's module "spssaux2" and was wondering if there is a workaround to use it as to move "others" in ctables to the botton, BUT using mrsets.

Jon Peck posted this solution for a variable named "store"

gencatlist.gencategorylist('store', [5, 21], 'storelist') spss.Submit("""ctables /table store+instore /categories variable=store [!storelist missing]""")

But I need to change 'store' for a mrsets called "$q8", and the module is stating that since this is a systema variable itwon´t work.

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Python spssaux2.gencategorylist question

Jon K Peck
I am working on an extension command that will provide the functionality of genCategoryList as an extension command so that knowledge of Python is not required.  It will also handle multiple dichotomy and multiple response sets.  I can't promise when it will be posted, but it is well underway.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Juan Pablo Sandoval <[hidden email]>
To:        [hidden email],
Date:        07/22/2013 12:11 PM
Subject:        [SPSSX-L] Python spssaux2.gencategorylist question
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi:

I was working with Python's module "spssaux2" and was wondering if there is a workaround to use it as to move "others" in ctables to the botton, BUT using mrsets.

Jon Peck posted this solution for a variable named "store"

gencatlist.gencategorylist('store', [5, 21], 'storelist') spss.Submit("""ctables /table store+instore /categories variable=store [!storelist missing]""")

But I need to change 'store' for a mrsets called "$q8", and the module is stating that since this is a systema variable itwon´t work.

Any ideas?
ThW
Reply | Threaded
Open this post in threaded view
|

Re: Python spssaux2.gencategorylist question

ThW
In reply to this post by Juan Pablo Sandoval
Meanwhile, maybe this workaround is useful for you?

http://spssx-discussion.1045642.n5.nabble.com/CTABLES-selective-sorting-with-MR-sets-td5721265.html

Th W
Research Manager