Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Tweeted twitter.com/StackStats/status/1287945901319888897

is Is my logistic regression model correct?

iI have a factorial design 2*2 (A and B). Both variables with two responses high  (i coded itcoded as 1) and low (i coded itcoded as 0) and iI have a response variable y $y$, my logistic model include interaction between A and B in R i, I coded logit<-glm(y~ A + B + A:B, data = df, family = "binomial") , i.

I verified the data and everything is good i. I even ensured the my variables are coded as factors  , in the exercise i'mI'm working on iI demonstrated that (check the image) enter image description here

the yThe $y$ in the picture are the average response. theThe table used to calculate the coefficient is : enter image description here

theThe coefficient iI found using the formulas in the picture are not equal to the coefficient in the output of R  (see image) enter image description here i

I don't understand where the problem is , i. I hope someone can explain to me the error iI made and thank.

Thank you.

is my logistic regression model correct?

i have a factorial design 2*2 (A and B) Both variables with two responses high(i coded it as 1) and low (i coded it as 0) and i have a response variable y , my logistic model include interaction between A and B in R i coded logit<-glm(y~ A + B + A:B, data = df, family = "binomial") , i verified the data and everything is good i even ensured the my variables are coded as factors  , in the exercise i'm working on i demonstrated that (check the image) enter image description here

the y in the picture are the average response. the table used to calculate the coefficient is : enter image description here

the coefficient i found using the formulas in the picture are not equal to the coefficient in the output of R(see image) enter image description here i don't understand where the problem is , i hope someone explain to me the error i made and thank you.

Is my logistic regression model correct?

I have a factorial design 2*2 (A and B). Both variables with two responses high  (coded as 1) and low (coded as 0) and I have a response variable $y$, my logistic model include interaction between A and B in R, I coded logit<-glm(y~ A + B + A:B, data = df, family = "binomial").

I verified the data and everything is good. I even ensured the my variables are coded as factors, in the exercise I'm working on I demonstrated that (check the image) enter image description here

The $y$ in the picture are the average response. The table used to calculate the coefficient is : enter image description here

The coefficient I found using the formulas in the picture are not equal to the coefficient in the output of R  (see image) enter image description here

I don't understand where the problem is. I hope someone can explain to me the error I made.

Thank you.

Source Link

is my logistic regression model correct?

i have a factorial design 2*2 (A and B) Both variables with two responses high(i coded it as 1) and low (i coded it as 0) and i have a response variable y , my logistic model include interaction between A and B in R i coded logit<-glm(y~ A + B + A:B, data = df, family = "binomial") , i verified the data and everything is good i even ensured the my variables are coded as factors , in the exercise i'm working on i demonstrated that (check the image) enter image description here

the y in the picture are the average response. the table used to calculate the coefficient is : enter image description here

the coefficient i found using the formulas in the picture are not equal to the coefficient in the output of R(see image) enter image description here i don't understand where the problem is , i hope someone explain to me the error i made and thank you.