On Thu, Oct 17, 2013 at 7:50 PM, Alex Li <
ale...@gmail.com> wrote:
> Thanks for your response, and your null hypothesis is correct.
>
> More details: I am looking at a large cohort of ~6000 randomly selected
> individuals who are all measured for a continuous trait, for example blood
> pressure. Within this sample,each individual falls into one of three
> non-overlapping groups: 0, 1, and 2. Now I would like to see if blood
> pressure increases across these groups. Group 2 is always very small, n <
> 10. FYI 0, 1, and 2 represent genotypes as I am a geneticist.
>
> I came across Cuzick's test and would like to try and implement it but I
> could not access the original article, not am I proficient in matlab. In
> addition to python I know a some R if that helps? It also looks like STATA
> has a function (
http://www.ats.ucla.edu/stat/stata/faq/test_trend.htm) but I
> do not have a license for this software.
Stata has currently the manual online without restriction
http://www.stata.com/manuals13/r.pdf
The formulas don't look very detailed, but it should be possible to
reuse the scipy functions for rank and ties.
The alternative in Cuzick is either increasing or decreasing, I just saw.
how many individuals do you have in group 1?
I guess group 2 will have only a very small effect on the result,
given that the sample is very unbalanced.
....
A bit later (as a quick distraction)
https://gist.github.com/josef-pkt/7035711
verified with 2 Stata manual examples.
Josef