BookmarkSubscribeRSS Feed
Jazzman
Obsidian | Level 7

I'm talking about the simple "proc sgplot data=filename; density var; run;" command here, that is "normal". My question regards the estimation of SD and mean. As mentioned earlier, it's only logical to use the sample attributes as parameters but in theory there are other options to fit a normal distribution curve to a given distribution. I'm also a bit suspicious because the documentation presents options to manipulate the curve parameters.

1 REPLY 1
Rick_SAS
SAS Super FREQ

PROC SGPLOT only supports the most frequently used options. For TYPE=NORMAL, that means sample mean and std dev or specified parameter values.

 

The HISTOGRAM statement in PROC UNIVARIATE provides more support and a wide range of distributions that you can fit. The HISTOGRAM statement also enables you to specify some parameters, but have others chosen automatically, typically by using MLE or method of moments.

 

What options are you looking for? In general, if you want a complicated estimate (such as MLE), you should use a SAS statistical procedure (maybe PROC GENMOD or NLIN or IML) to compute the parameter estimates and then type the parameter values into the SGPLOT procedure.

 

If you link to the documentation that presents "suspicious" results, perhaps we can explain what you are seeing.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 920 views
  • 1 like
  • 2 in conversation