From 45c43b4e3f79d3aa031a074b52fe0df06bd6c3ac Mon Sep 17 00:00:00 2001 From: Melanie Debelgarric Date: Wed, 6 Apr 2022 14:24:43 +0200 Subject: [PATCH] modif code courbe predict --- module4/src_R_challenger.Rmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module4/src_R_challenger.Rmd b/module4/src_R_challenger.Rmd index d6c8956..1343002 100644 --- a/module4/src_R_challenger.Rmd +++ b/module4/src_R_challenger.Rmd @@ -61,10 +61,12 @@ estimate the failure probability for such temperature using our model.: # shuttle=shuttle[shuttle$r!=0,] tempv = seq(from=30, to=90, by = .5) rmv <- predict(logistic_reg,list(Temperature=tempv),type="response") -plot(tempv,rmv,type="l",ylim=c(0,1)) +plot(tempv,rmv,type="l",ylim=c(0,1)) + points(data=data, Malfunction/Count ~ Temperature) ``` +*Modification de la fonction (ajout d'un "+"), sinon bug pour ajouter les points sur la courbe predict.* + This figure is very similar to the Figure 4 of Dalal et al. **I have managed to replicate the Figure 4 of the Dalal *et al.* article.** # Confidence on the prediction -- 2.18.1