# Help with Loess Statement in Proc Sgplot

#### mathgeek10

##### New Member
Hi
Here is my code. It is to graph the results of a loess curve using proc sgplot

Code:
title1 "Loess Curve of Loudness Ratings by Ear";
proc sgplot data=tms514.first;
scatter x=s_count y=log_rat/group=ipsi_con;
xaxis label='TMS Session in Time Order' grid values=(1 to 26 by 1);
loess x=s_count y=log_rat/group=ipsi_con clm;
run;

However, I need to view a FIT Summary that includes the smoothing parameter and points in local neighborhood etc. I know that the proc loess has a model statement which has a details option for this information. But in this case we are using proc sgplot. The loess statement under sgplot, to my knowledge has no details option.

My first thought to obtain this information is to simply run a proc loess. However, I’m worried that the proc loess I run won’t correspond to the proc sgplot with loess statement which we are using for our visual.

Any ideas as to how I go about getting the fit summary details?

Thanks,
Tiffany

P.S. I couldn't figure out how to attach documents. I have my data information and a sample below:

Alphabetic List of Variables and Attributes

# Variable Type Len Format Label

4 DATE Num 8 DATE7. Session Date
3 DETAIL Char 8 8. Treatment Classification
7 EAR_RATI Char 4 4. Ear Rating
8 IPSI_CON Char 8 8. Ipsilateral or Contralateral to Stimulation
9 LOG_RAT Num 8 8.2 Log 10 of tinnitus rating
2 SUBJECT Char 8 8. Subject Number
1 S_COUNT Num 8 8.2 Session
6 TINT_RAT Num 8 8.2 Tinnitus Rating (from line)
5 TX_HEMI Char 8 8. Treatment Hemisphere

Effect of rTMS on Tinnitus Loudness Ratings 1
12:08 Friday, November 4, 2011

Obs S_COUNT SUBJECT DETAIL DATE TX_HEMI TINT_RAT EAR_RATI IPSI_CON LOG_RAT

1 1.00 3 1 01MAR06 1 44.00 1 1 1.65
2 1.00 3 1 01MAR06 1 44.00 2 2 1.65
3 2.00 3 1 10MAR06 1 10.00 1 1 1.04
4 2.00 3 1 10MAR06 1 10.00 2 2 1.04
5 11.00 3 5 24SEP07 1 28.00 1 1 1.46
6 11.00 3 5 24SEP07 1 32.00 2 2 1.52
7 12.00 3 5 25SEP07 1 6.00 1 1 0.85
8 12.00 3 5 25SEP07 1 6.00 2 2 0.85
9 13.00 3 5 09OCT07 1 61.00 2 2 1.79
10 13.00 3 5 09OCT07 1 64.00 1 1 1.81
11 14.00 3 5 10OCT07 1 50.00 1 1 1.71
12 14.00 3 5 10OCT07 1 52.00 2 2 1.72
13 15.00 3 5 11OCT07 1 19.00 2 2 1.30
14 15.00 3 5 11OCT07 1 20.00 1 1 1.32
15 16.00 3 5 23OCT07 1 49.00 1 1 1.70
16 16.00 3 5 23OCT07 1 50.00 2 2 1.71
17 17.00 3 5 27OCT07 1 82.00 1 1 1.92
18 17.00 3 5 27OCT07 1 83.00 2 2 1.92
19 1.00 6 1 10APR06 1 40.00 1 1 1.61
20 1.00 6 1 10APR06 1 40.00 2 2 1.61
21 2.00 6 1 11APR06 1 70.00 1 1 1.85
22 2.00 6 1 11APR06 1 70.00 2 2 1.85
23 3.00 6 1 12APR06 1 55.00 1 1 1.75
24 3.00 6 1 12APR06 1 55.00 2 2 1.75
25 4.00 6 1 13APR06 1 85.00 1 1 1.93
26 4.00 6 1 13APR06 1 85.00 2 2 1.93
27 5.00 6 1 14APR06 1 15.00 1 1 1.20
28 5.00 6 1 14APR06 1 15.00 2 2 1.20
29 10.00 6 5 19FEB08 1 15.00 1 1 1.20
30 10.00 6 5 19FEB08 1 67.00 2 2 1.83
31 11.00 6 5 20FEB08 1 8.00 1 1 0.95
32 11.00 6 5 20FEB08 1 36.00 2 2 1.57
33 12.00 6 5 21FEB08 1 14.00 1 1 1.18
34 12.00 6 5 21FEB08 1 48.00 2 2 1.69
35 13.00 6 5 22FEB08 1 7.00 1 1 0.90
36 13.00 6 5 22FEB08 1 19.00 2 2 1.30
37 15.00 6 5 27FEB08 1 10.00 1 1 1.04
38 15.00 6 5 27FEB08 1 20.00 2 2 1.32