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

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 1735 views
  • 0 likes
  • 2 in conversation