BookmarkSubscribeRSS Feed
deleted_user
Not applicable
hi

I'm trying to use kde to generate a bivariate density estimate, but although the procedure runs and produces a plot it does not put the results into a SAS dataet. The code I'm using is:

ods html;
ods graphics on;

proc kde data=datain out=devn;
BIVAR VAR1 VAR2;
run;

ods graphics off;
ods html close;

and the data set size is ~510715 records.

The message I get back after the calculation is performed is:

NOTE: Processing BIVAR statement number 1.
NOTE: The data set WORK.DEVN has 0 observations and 0 variables

Anyone have any ideas?

Cheers
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
What version of SAS? The use of the OUT= changed between 8.2 and 9.2.

See page 2888
http://support.sas.com/documentation/cdl/en/statugkde/61796/PDF/default/statugkde.pdf
deleted_user
Not applicable
hi

the version of sas that I am using is 9.1

Regards
deleted_user
Not applicable
Ok I've figured it out the out option needs to go with the BIVAR statement and not the kde

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 655 views
  • 0 likes
  • 2 in conversation