python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Using python to compute relative risk (risk ratio) from a dataframe with support of the zepid package (simulate the riskratio from epitools r pack.)
I'm coming from this post and this website of the zEpid package. My goal is to compute the relative risk (aka risk ratio) from a pd.DataFrame. The independent variable has three levels (1,2, and 3) an...
Luis
Votes: 0
Answers: 1
How to deal with statsmodel.api OLS efficiency
I have a df consist of columns: industry, comp_id, year, y and x1, x2, x3, ... The data looks like this:
indus comp_id year y x1 x2 x3 other_var
0 A 100 2000 90.0 9...
PTQuoc
Votes: 0
Answers: 1
Running a robust mixed model ANOVA using statsmodel anova_lm
I have a data set of users behavior which I want to run series of ANOVA's on, based on there outcome of assumption checks. For situations where the assumption of homogeneity isn't met I would like to ...
Navot Naor
Votes: 0
Answers: 0
Logistic regression using statsmodel formula
I am new to using Python and had a simple question on using statsmodels. Any help would be greatly appreciated! So I have an example where I want to look at the association between variable Y and dise...
erikuser23
Votes: 0
Answers: 0