dlqert.blogg.se

Sas fitplot
Sas fitplot











sas fitplot

This name is used in the ODS OUTPUT statement to save the data that produces the plot. The name of the plot, FitPlot, can be found as described in the referenced note above. In the following statements, PROC LOGISTIC fits the desired model and uses the EFFECTPLOT statement to display the fitted model showing the effect of LWT while holding the other predictors fixed. Of interest is a plot of the predicted probability of low birth weight against the LWT predictor, the last weight of the mother.

sas fitplot

The probability of low birth weight (low=1) is modeled as a function of several predictors. The following example uses data from a low birth weight study presented by Hosmer and Lemeshow (2000). Both methods are illustrated below for a logistic model. Another method that can be used for this type of plot is storing the model and then creating, scoring, and plotting a suitable set of data using the stored model. The most common modification method is to save the data for the graph and then produce the plot as desired using PROC SGPLOT. Most modifications to the appearance of the produced plot must be made using one of the general methods for altering ODS graphs discussed in this note.

sas fitplot

Limited aspects of the plot can be altered directly in the modeling procedure. The predicted (or linear predictor, xβ) values are plotted against one predictor in the model while holding any other predictors at their mean (if continuous) or reference level (if categorical). A plot of the fitted model can be produced by many modeling procedures using either the EFFECTPLOT statement or the PLOTS= option in the PROC statement.













Sas fitplot