


Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!



This dataset contains information about 248 women to study the infertility in each case, considering the following variables: Education: it is a categorical variable which indicates three class of education for each woman:
The aim of the study is to analyse how the variables affect the response: in this case the response is a binary variable so it is necessary to apply the Logit Regression Model whose general formula is: Π= e^(Bo+B1x1+…+BpXpi)/1+e^(B0+B1x1+…+BpXpi) First of all, it is useful to apply the model with considering all variables (without stratum and pooled stratum) and reflect on the cofounding effect; from this model, it is evident: Looking at the p-value, it is possible to affirm what I state below that is the lowest effects for the response of the variables education and age. For interpretation, in a Logit Model we use the exponential function (so the results is the exponential of estimate member): Moving from the first class of education to the second one, probability of having infertility decreases by 0,35. Moving from the first class of education to the third one, probability of having infertility decreases by 0,25. Moving from the years, probability of having infertility increases by 1,04. Moving from the number of children, probability of having infertility decreases by 0,92. Moving from the first class of induced to the second one, probability of having infertility increases by 3,52. Moving from the first class of education to the third one, probability of having infertility increases by 13,36. Moving from the first class of spontaneous to the second one, probability of having infertility increases by 7,62. Moving from the first class of education to the third one, probability of having infertility increases by 60,27. The AIC value (which is an estimator of the relatives information lost by a given model) results equal to 275,78.
ls() head(d) tail(d) dim(d) attach(d) summary(d) par(mfrow=c(2,2)) hist(working,col=1) hist(parities,col=2) hist(sec.school,col=3) hist(ageGroup,col=4) o<-glm(working~parities+sec.school+ageGroup) IN CASO DI VAR. CAT TRASFORMARE IN FACTOR summary(o) table(working,parities) table(working,sec.school) table(working,ageGroup) 115/(107+115) 34/(34+58) 55/(55+70) ODD-RATIO= si calcola per l’interpretazione dei coeffic nella logit