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
Sample Generation Tool
-
Gregory Martin
- Posts: 1946
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Sample Generation Tool
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
Thanks for your quick response. I wanted to get 20 percent of the data for development purposes
thanks
thanks
-
Gregory Martin
- Posts: 1946
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Sample Generation Tool
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
Yes I was able to generate the sample as I followed your instructions. Thank you. 
-
bidhu
- Posts: 25
- Joined: April 15th, 2013, 12:43 pm
Re: Sample Generation Tool
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
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: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Sample Generation Tool
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
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
Hey Josh, I could do it without any trouble.
Many thanks for the clue.
Regards
Bidhu
Many thanks for the clue.
Regards
Bidhu