turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- Base SAS Programming
- /
- Help on CDF function

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-25-2012 10:42 AM

I am working on some mixture problems, and thought I would use the CDF function, with the normalmix distribution. Log info follows:

31 data two;

32 val=cdf('normalmix',2,.5,.5,0,1,1,1);

33 run;

NOTE: Argument 3 to function CDF at line 32 column 5 is invalid.

val=. _ERROR_=1 _N_=1

Now per the documentation as I understand it, with a second argument of 2, indicating a mixture of two normals, I should give two proportions (pi's in the notation used in the documentation) that sum to 1. Does anybody have some info as to what I need to change the .5's to in order for this to work?

Thanks,

Steve Denham

Accepted Solutions

Solution

09-25-2012
10:47 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-25-2012 10:47 AM

<BEATS HEAD AGAINST DESK>

I left out the value for n--the integer number of mixtures. Most likely because it is also a two...

Steve Denham

All Replies

Solution

09-25-2012
10:47 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-25-2012 10:47 AM

<BEATS HEAD AGAINST DESK>

I left out the value for n--the integer number of mixtures. Most likely because it is also a two...

Steve Denham