BookmarkSubscribeRSS Feed
crikriek
Calcite | Level 5

Hi everyone,

I'm currently writting my thesis and I'm facing a problem with the proc surveyreg. My teacher wants me to cluster my sample for an analysis with the help of procsurveyreg  but I do not succeed to.

I want to cluster on two factors. Here is a sample of the data I want to cluster. I need to cluster the traders based on transactions and volume.

Id_traderTransactionsVolume
11245
2380
3865
440120

Could you please help me with it ?

2 REPLIES 2
SteveDenham
Jade | Level 19

SURVEYREG supports clustering through the CLUSTER statement and stratification through the STRATA statement.  Please share what code you are attempting.  You may need to run PROC FASTCLUS (or some other clustering procedure) prior to your analysis, to classify the various records into clusters.

Steve Denham

ballardw
Super User

Cluster is also a sample design issue in survey analysis procs. For example students sampled within each School building of a School district. The STRATA could be School Districts and Clusters are the Schools. You would as a minimum need a totals data set and each strata should indicate the number of clusters.

If your not sampling withing the Id_trader then it looks like you may be looking at more of a domain analysis then clusters.

If you are looking for similarity between your ID_trader values then you would use one of the clustering procedures to identify the similar groups and likely want to merge that into the data as a model variable but not a sample cluster.

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