0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

Linear Regression Model And Mixed ANOVA with repeated Measures #103

Closed ProfAthlete closed 4 years ago

ProfAthlete commented 5 years ago

Hi, I'm curious on why the joint angle/moment regression models mentioned in some of the papers (i.e. Vanrenterghem 2012, Sankey 2015) are implemented and how they can be implemented in Python. Also, I am curious about what the Alpha, Beta, Theta and Epsilon refer to.

My research will be looking into effects of fatigue on trained/untrained athletic maneuvers, and I will be using within-between subjects' ANOVA with repeated measures in SPM1D (Python) for analysis. I am wondering if my research would need the implementation of the regression models. Could you please enlighten on the matter?

sincerely, Muhammad.

0todd0000 commented 5 years ago

Hi, sorry for the delay!

I'm curious on why the joint angle/moment regression models mentioned in some of the papers (i.e. Vanrenterghem 2012, Sankey 2015) are implemented and how they can be implemented in Python.

"Why" is a tough question to answer, but it relates to the relevant study's purposes. The easiest way to conduct these analyses in Python is to use the spm1d package. The best places to get started are (a) the example scripts in ./spm1d/examples, and (b) the online documentation.

My research will be looking into effects of fatigue on trained/untrained athletic maneuvers, and I will be using within-between subjects' ANOVA with repeated measures in SPM1D (Python) for analysis. I am wondering if my research would need the implementation of the regression models. Could you please enlighten on the matter?

If your independent variable(s) is/are continuous, then regression would likely be appropriate. Note that ANCOVA (i.e., ANOVA with regression) is not yet supported in spm1d.

ProfAthlete commented 5 years ago

Hi, I'm sorry for the confusion what I mentioned as Theta was actually Tau. I'm shouldn't be so clumsy with these Greek symbols.

If your independent variable(s) is/are continuous, then regression would likely be appropriate. Note that ANCOVA (i.e., ANOVA with regression) is not yet supported in spm1d.

I'll keep that in mind, In that case, would you recommend that I use a similar approach to #12's issue?

0todd0000 commented 5 years ago

In Bayesian analysis Tau is usually the parameters whose values are to be estimated, but I'm not sure otherwise. If that's not what it is please send the name of the paper in which Tau appears.

Yes, the #12 approach (random effects modeling) might work well. Here is an updated link to the documentation.

0todd0000 commented 5 years ago

I just realized: the symbols in Sankey et al. (2015) all refer to modeled parameters:

Note that these symbols' meanings are specific to this paper. They don't necessarily mean the same thing in other papers.

ProfAthlete commented 5 years ago

I just realized: the symbols in Sankey et al. (2015) all refer to modeled parameters: Alpha: regression intercepts Beta: regression slopes t (not Tau): time Epsilon: residuals

Oh my, I just realized that too. I also just realized that the Tau you used was not for any regression, but rather interaction effects in two-way ANOVA (Pataky et al. 2104; J Biomech)

Note that these symbols' meanings are specific to this paper. They don't necessarily mean the same thing in other papers.

I see. I will look further into the papers again and study them a little harder. I'll reach out if I have some more (hopefully not so silly) queries. Thank you so much for your time explanations.

ProfAthlete commented 4 years ago

image Hi, I was just wondering, what does "task execution variable" actually mean in this above regression equation and how do we actually define and implement it into the equation?

0todd0000 commented 4 years ago

I believe that this equation comes from Sankey et el. 2015. If I am mistaken please cite its source.

My interpretation of this equation is: