![]() While this is a nice graph and it is easy to make, the customer specifically wanted PROC REG, because PROC REG displays a table of statistics along with the fit plot. The KEYLEGEND statement displays a legend inside the graph. Instead, they are displayed by the SCATTER statement, which uses the GROUP=SEX option to distinguish the groups. to output objects created by SAS procedures, an output object has a specific name that cannot be changed, and the object cannot be called by any other name. This option allows the data set to resemble the default printed output. ![]() This option is STACKODSOUTPUT (alias: STACKODS) and it is placed on the PROC MEANS statement. The NOMARKERS option suppresses the markers from being displayed by the REG statement. In SAS 9.3, a new option was added that only affects the output data set created using the ODS OUTPUT statement. The STYLEATTRS statement creates the custom markers. ![]() The $SEX format provides meaningful labels in the legend. The ATTRPRIORITY=NONE option enables marker differences to be displayed as well as color differences. These examples all use the HTMLBlue style, which is an ATTRPRIORITY=COLOR style. Keylegend 'scatter' / location=inside across=1 position=topleft Scatter y=weight x=height / group=sex name='scatter' Reg y=weight x=height / cli clm nomarkers Styleattrs datasymbols=(squarefilled circlefilled) Title 'Simple Regression but with a Classification Variable Displayed - PROC SGPLOT' Interaction variables are generated by multiplying the IV and the MV together, and this resulting product variable is then entered into the regression.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |