Predicted value and 95% CI for an individual prediction (PROC REG)


/ Published in: SAS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. data source;
  2. input y x;
  3. datalines;
  4. 60 70
  5. 45 55
  6. 55 63
  7. 51 68
  8. . 73
  9. ;
  10.  
  11. proc reg data=source;
  12. model y=x;
  13. output out=predict
  14. p=y_pred
  15. LCL=y_95LCL
  16. UCL=y_95UCL ;
  17.  
  18. proc print data=predict(where=(y=.)) noobs;
  19. run;

URL: http://support.sas.com/forums/thread.jspa?threadID=5453&tstart=0

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.