data one; input x y; datalines; 0.91 179.41 0.49 175.32 0.61 180.71 0.79 157.65 0.40 166.14 1.14 223.82 0.61 154.35 0.49 152.80 0.40 132.49 0.61 196.75 1.14 165.10 0.79 164.22 0.49 160.30 1.14 218.44 0.91 212.09 0.79 174.81 0.91 178.46 0.40 162.09 ; data fill; do x=.0 to 1.14 by 0.01; y=.; output; end; run; data one; set one fill; run; proc sort data = one; by x; proc nlin data = one; parameters L=223.82 U=-115 R=0.7; z1= (x<R) * (R-x); model y= L + U* (z1); output out=ppp p=predy; run; Proc sgplot; Title2 'WG'; plot y*x predy*x/overlay; run; I'm getting the same error. I try to change to sgplot and still getting an error: "ERROR 180-322: Statement is not valid or it is used out of proper order."
... View more