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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1206 views
  • 0 likes
  • 2 in conversation