Randomization Permutation Tests

14 views
Skip to first unread message

Maria Smith

unread,
Jun 30, 2021, 8:51:15 PMJun 30
to pystat...@googlegroups.com
Hi, 
Can someone please guide as how to best apply binomial variables to permutation tests? 

There are two main groups of comparison (Group 1, Group 2) and both have 4 categories 
(Category 1, Category 2, Category 3, Category 4), and within each category are 9 binomial characteristic elements. 

I’d like to resample and permute the data but I’m at a lost where to start. 

Any assistance would be appreciated. I’m even willing to discuss over Zoom. 

Best, 
Maria 

--
Maria S. Smith
PhD Student | NSF Graduate Research Fellow
UC Chancellor's Fellow
Department of Sociology | University of California, Berkeley

Chuck Becker

unread,
Jun 30, 2021, 9:41:58 PMJun 30
to pystat...@googlegroups.com
You may (probably?) have done this already, however when I google "binomial variables to permutation tests python" some promising looking results come up.  That's all I have at the moment.

--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CANKVonMXUAFhLCz_G0mYL197dbjsrqKuJ%2BehGedkGPmKNaR-KQ%40mail.gmail.com.

josef...@gmail.com

unread,
Jul 1, 2021, 9:51:42 AMJul 1
to pystatsmodels
On Wed, Jun 30, 2021 at 9:41 PM Chuck Becker <captcl...@gmail.com> wrote:
You may (probably?) have done this already, however when I google "binomial variables to permutation tests python" some promising looking results come up.  That's all I have at the moment.

On Wed, Jun 30, 2021, 5:51 PM Maria Smith <maria...@berkeley.edu> wrote:
Hi, 
Can someone please guide as how to best apply binomial variables to permutation tests? 

There are two main groups of comparison (Group 1, Group 2) and both have 4 categories 
(Category 1, Category 2, Category 3, Category 4), and within each category are 9 binomial characteristic elements. 

Is this a 4 by 4 contingency table?
What are these  9 binomial characteristic elements?
What are the statistics or hypothesis tests that you want to compute?

As mentioned by Chuck with the google search, there are several packages in python that include it.
including a Berkeley package https://github.com/statlab/permute
I never went in detail through any of those packages.

Statsmodels doesn't have any permutation tests yet, both because some cases are available in python already 
and because I didn't or don't understand enough yet to get around the strong assumptions and limitations of simple
permutation tests.

I worked on simulating 2-dim contingency tables which turned out to be just permutations.

some of the other issues

Josef
 

I’d like to resample and permute the data but I’m at a lost where to start. 

Any assistance would be appreciated. I’m even willing to discuss over Zoom. 

Best, 
Maria 

--
Maria S. Smith
PhD Student | NSF Graduate Research Fellow
UC Chancellor's Fellow
Department of Sociology | University of California, Berkeley

--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CANKVonMXUAFhLCz_G0mYL197dbjsrqKuJ%2BehGedkGPmKNaR-KQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages