predict function

  1. S

    Prediction and Poisson

    I have been set the tast of running a Poisson regression and then using the predict command to predict the number of visits to the doctors per age group (<30, 30-50, >50) Whilst keeping illness and sex at their constant mean values. Now my gender variable is: > levels(DoctorVisits$gender)...
  2. R

    Fitting confidence interval lines in R using the predict function

    Hi everyone, I am currently attempting to fit confidence interval lines to a regression model in R, but every time I try to for example add a +2 confidence interval line, I end up with two of them! I have been over my code many times and can't find any obvious mistakes. This is the code I...