BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SteveDenham
Jade | Level 19

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

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

<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

View solution in original post

1 REPLY 1
SteveDenham
Jade | Level 19

<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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 680 views
  • 0 likes
  • 1 in conversation