BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am not experienced enough to code a SAS query that will mirror 2 datasets with similar characteristics. So I came on here, hoping to get some help!

My objective is to mirror a dataset from a specific time period (2007Quarter3) to another dataset from 2008Quarter1. By mirroring, I mean possibly filtering and excising certain observations from the 2007Q3 set in order to achieve the same (or almost the same) characteristics as 2008Q1.

My thought process was to obtain a random sample from 2008Q1 using Proc SurveySelect with a large enough sample size. Then I hope write a code that tells SAS to find a near-match of each observation in the random sample (2008Q1) to the whole dataset from 2007Q3.

I would like to know if this is possibly the best process and if there's a better solution. I have no idea what procedures to utilize when conducting the matching process.

Thanks so much for everyone's input and help.

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