Page 1 of 1

Sample Generation Tool

Posted: April 4th, 2013, 4:18 pm
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

Re: Sample Generation Tool

Posted: April 4th, 2013, 7:54 pm
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.

Re: Sample Generation Tool

Posted: April 11th, 2013, 4:07 pm
by DixieAnn
Thanks for your quick response. I wanted to get 20 percent of the data for development purposes
thanks

Re: Sample Generation Tool

Posted: April 16th, 2013, 1:40 pm
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.

Re: Sample Generation Tool

Posted: May 22nd, 2013, 1:20 pm
by DixieAnn
Yes I was able to generate the sample as I followed your instructions. Thank you. :D

Re: Sample Generation Tool

Posted: March 16th, 2016, 12:04 pm
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

Re: Sample Generation Tool

Posted: March 16th, 2016, 1:56 pm
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.

Re: Sample Generation Tool

Posted: March 17th, 2016, 12:15 pm
by bidhu
Thank you Josh. I will work on it and I will come back to you if I face problem.

Re: Sample Generation Tool

Posted: March 18th, 2016, 12:59 am
by bidhu
Hey Josh, I could do it without any trouble.

Many thanks for the clue.

Regards
Bidhu