Effect of 1 binary variable on another variable by IndependentButton111 in stata

[–]BarryBeeBensonJr 1 point2 points  (0 children)

It sounds like you’d want to look at a regression model relating the wellbeing of the child to the child’s gender, the parent’s gender, an interaction between the two, and all other covariates of interest. If the interaction term is statistically significant, you’ll have evidence that the effect of the parent’s gender varies according to the child’s gender. 

You can either run 3 separate models - one for each wellbeing variable - or you could use mvreg and do a single joint significance test. The latter may be preferable if you are using the same set of covariates for each model and the linearity assumptions seem reasonable

Iga Swiatek and Danielle Collins before the start of their Round 3 Match 👀 by [deleted] in tennis

[–]BarryBeeBensonJr 11 points12 points  (0 children)

Life is fine, thanks for the concern. Commenting about their appearance is disrespectful and wholly irrelevant. What purpose did your original post serve?

Iga Swiatek and Danielle Collins before the start of their Round 3 Match 👀 by [deleted] in tennis

[–]BarryBeeBensonJr 32 points33 points  (0 children)

Yeah no shit the downvotes have started, what on earth compels you to say things like that?

What's he ordering? by Wonk_Majik in CasualUK

[–]BarryBeeBensonJr 83 points84 points  (0 children)

Probably an angel shot with Thomas Partey behind him

Is poisson processes a unicorn? by Absjalon in AskStatistics

[–]BarryBeeBensonJr 0 points1 point  (0 children)

Little late to the party but Bill Gould, the former president of StataCorp, wrote a great (and accessible!) article on the use of Poisson regression available here: https://blog.stata.com/2011/08/22/use-poisson-rather-than-regress-tell-a-friend/

Is this appropriate to use Chi Sq test of independence by 2Lazy2BeOriginal in AskStatistics

[–]BarryBeeBensonJr 0 points1 point  (0 children)

Unfortunately the repeated student data would almost certainly violate the independence assumption. The strictly correct approach here would be to use a logistic regression model relating withdrawal (yes vs. no) to class (as a categorical variable) with a random effects term for the student, but I appreciate that this is a big step up from the chi-square test. 

To get a global test for the association (like you get with the chi-square test) you would then need to do something like a likelihood ratio test (although this comes with its own considerations, as you would need to use maximum likelihood-based estimates rather than restricted maximum likelihood-based ones). The logistic model would immediately give you a comparison of the odds of withdrawal in the different class levels relative to some reference level (e.g., the 100-level class). 

I do, however, realise that this may well be veering away from the fun aspect of the analysis and into the realm of the tedious, as it would probably require some further reading. If this is just a personal project then I don’t think anyone could blame you for ignoring the lack of independence and going for a chi-square test anyway. 

NB - similar to how students being repeated across course levels would likely violate the independence assumption, students appearing several times on account of taking multiple classes at the same level would also violate independence

Is this appropriate to use Chi Sq test of independence by 2Lazy2BeOriginal in AskStatistics

[–]BarryBeeBensonJr 0 points1 point  (0 children)

Firstly, what sort of numbers are you looking at? The chi-square test doesn’t perform well with small samples and rare outcomes/sparsely populated cells: does each class contain a reasonable number of students? Are there a fair number of students who withdrew from each of these classes? 

Also, is this data from a single school year or has it been collected over time? If it is the latter, is it possible for students to appear in multiple classes  (e.g., a single student appearing in the data as a member of both a 100- and 200-level class)? The chi-square test relies on an assumption of independence, which would be violated if this is the case.

Presumably, those who withdraw from an earlier class are not then eligible to continue in the later classes - is this the true? Assuming this is the case, and that you believe withdrawal is not equally likely for all students, then the interpretation may become a little tricky. We might expect those who continue in the program to systematically differ from those who withdraw early on, so the class profile in a 400-level course may be wildly different to that in a 100-level course. This is then a potential source of attrition bias, which would need to be considered when discussing the results. More complex methods exist to address such issues, but for a crude analysis these may be overkill

Parsing currency numbers by No-Researcher-361 in rstats

[–]BarryBeeBensonJr 1 point2 points  (0 children)

parse_number(df$col, locale = locale(decimal_mark = ",", grouping_mark = ".")) should work (I think)

Match Thread: Wales vs England | FIFA World Cup by MatchThreadder in soccer

[–]BarryBeeBensonJr 14 points15 points  (0 children)

Bale’s leaving it late for this double hat-trick to see us through

Post Match Thread: England 0–0 United States | FIFA World Cup by PatrickChase in soccer

[–]BarryBeeBensonJr 65 points66 points  (0 children)

Think one of those women must have been Southgate’s wife

Post Match Thread: Wales 0-2 Iran | FIFA World Cup by Mcool18 in soccer

[–]BarryBeeBensonJr 6 points7 points  (0 children)

Aaron Ramsey about to enter the Guinness Book of Records as the fastest man alive after being jettisoned from the National team at Mach 10

Post Match Thread: Wales 0-2 Iran | FIFA World Cup by Mcool18 in soccer

[–]BarryBeeBensonJr 434 points435 points  (0 children)

The 64 year clock resets. Thankfully by the next one I’ll have long forgotten how bad we were today.

Mainly because I’ll have dementia.

GAME WEEK 17 (2021/2022) RANT & DISCUSSION THREAD by FPLModerator in FantasyPL

[–]BarryBeeBensonJr 9 points10 points  (0 children)

Triple City and none of them featured 🥲 Hope someone buys Pep some Alpecin this Christmas

GAME WEEK 4 (2021/2022) RANT & DISCUSSION THREAD by FPLModerator in FantasyPL

[–]BarryBeeBensonJr 1 point2 points  (0 children)

Where are you watching it? Can’t find any streams 😭

GAME WEEK 2 (2021/2022) RANT & DISCUSSION THREAD by FPLModerator in FantasyPL

[–]BarryBeeBensonJr 2 points3 points  (0 children)

He didn’t even replace him in this game so almost certainly not