Sample Generation Tool

Discussions about tools to complement CSPro data processing
Forum rules
New release: CSPro 8.0
Post Reply
DixieAnn
Posts: 4
Joined: April 4th, 2013, 4:16 pm

Sample Generation Tool

Post by DixieAnn »

Good Day, Is it possible to generate a sample of data using CSPro software? For instance I want to generate a 20% Random sample of the a dataset.

Thanks in advance
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Sample Generation Tool

Post by Gregory Martin »

Right-click on the dictionary in the dictionary tree and select Dictionary Macros. From there you can easily create a sample of your data file, specifying what percentage of the data file you want to retain.
DixieAnn
Posts: 4
Joined: April 4th, 2013, 4:16 pm

Re: Sample Generation Tool

Post by DixieAnn »

Thanks for your quick response. I wanted to get 20 percent of the data for development purposes
thanks
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Sample Generation Tool

Post by Gregory Martin »

Were you able to use the Dictionary Macros approach? You can specify 20 as the percentage of data that you want, and you can specify whether you want a sequential sample or a random sample.
DixieAnn
Posts: 4
Joined: April 4th, 2013, 4:16 pm

Re: Sample Generation Tool

Post by DixieAnn »

Yes I was able to generate the sample as I followed your instructions. Thank you. :D
bidhu
Posts: 25
Joined: April 15th, 2013, 12:43 pm

Re: Sample Generation Tool

Post by bidhu »

Dear Greg,

Sorry for jumping into this old post. I was wondering, if it can be done through a program or menu based system?

Your response will be highly appreciated.

Regards
Bidhu
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sample Generation Tool

Post by josh »

You can do this with a batch edit application although you need to write a bit of logic. Use a counter combined with the "skip case" statement to keep only every nth case.
bidhu
Posts: 25
Joined: April 15th, 2013, 12:43 pm

Re: Sample Generation Tool

Post by bidhu »

Thank you Josh. I will work on it and I will come back to you if I face problem.
bidhu
Posts: 25
Joined: April 15th, 2013, 12:43 pm

Re: Sample Generation Tool

Post by bidhu »

Hey Josh, I could do it without any trouble.

Many thanks for the clue.

Regards
Bidhu
Post Reply