Hi everyone, I'm a bit embarrassed to ask this, but I'm really not understanding how to plot a nonlinear regression onto a scatter plot. Currently, I've learned how to use the PROC NLIN procedure in SAS and have been able to generate the same output from an online tutorial: http://www.ats.ucla.edu/stat/sas/faq/doseresponse.htm (yay!). However, I'm running into a wall when I'm trying to figure out how well the data fits the parameters predicted by SAS. I want to visually check the predicted variables just in case I need to adjust my starting parameters as indicated in my PARMS procedure. Here is the following syntax for plotting my data: PROC IMPORT DATAFILE="C:/Users/jessica/Desktop/SAS/SASUniversityEdition/myfolders/Practice test data.xlsx" OUT= Work.DoseResp DBMS=XLSX REPLACE; SHEET="DoseResp"; PROC NLIN Data=DoseResp; PARMS top = 68.875 bottom = 20.575 EC50 = 1 hill = 1; MODEL response = top + (bottom - top) / (1 + (concentration / EC50)**hill); data TestNLIN; x=1; do i=0 to 1000; Response = 59.1022 + ( 27.0807 - 59.1022)/(1 + (x/0.8171)**12.4058); output; x=x+10; end; PROC SGPLOT data = TestNLIN; scatter x = x y = Response; yaxis values = (20 to 70 by 10); xaxis values = (0 to 1000); PROC SGPLOT data=DoseResp; Scatter x=Concentration y=response; yaxis values = (20 to 70 by 10); xaxis values = (0 to 1000); RUN; Does anyone have a better way of plotting a nonlinear regression/plot onto a scatter plot? Or any other means to visually check how well the data fits to the parameters estimated by SAS? Much appreciated! Jess
... View more