#SAS FITPLOT HOW TO#The resulting model can flexibly fit a wide range of shapes.Īlthough this article shows how to create a fit plot, you can also get a fit plot directly from PROC QUANTREG. The weight gain is centered according to the formula MomWtGain = "Actual Gain" – 30 pounds.īecause the quantiles might depend nonlinearly on the mother's weight gain, the EFFECT statement generates a spline basis for the independent variable. The following call to PROC QUANTREG models the conditional quantiles of the baby's weight as a function of the mother's weight gain. The following DATA step creates the example data as a subset of the Sashelp.BWeight data set, which contains information about the weights of live births in the US in 1997 and information about the mother during pregnancy. (HPQUANTSELECT supports the CODE statement for scoring.) You can use this technique to construct a "sliced fit plot" that visualizes the model, as shown to the right. The first two procedures do not support any of the modern methods for scoring regression models, so you must use the "missing value trick" to score the model. SAS supports several procedures for quantile regression, including the QUANTREG, QUANTSELECT, and HPQUANTSELECT procedures. This article shows how to score (evaluate) a quantile regression model on new data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |