turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-10-2014 05:26 AM

hi all

i need your help to simulate multivariate continuous and ordered categorical data (10 variables :5 continuous normal and 5 ordered categorical data).

thanks in advance

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to thanoon

01-10-2014 09:15 AM

It might be easier to simulate 10 MVN variables and then apply cutpoints to create the ordinal categorical data.

Steve Denham

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to SteveDenham

01-10-2014 09:25 AM

Thank you very much for your help I hope to give me example about this.

Thanks alot

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to thanoon

01-10-2014 09:34 AM

See the following discussion on how to put values into labeled bins:

https://communities.sas.com/message/193351#193351

Steve Denham

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to SteveDenham

01-10-2014 09:35 AM

for additional background, see my comments on this related thread: https://communities.sas.com/thread/51619

It's great that you are so interested in this topic. From your comments, I am guessing that you are a student doing a project or thesis. I am a former university professor myself, so I'd like to encourage you to work hard to figure out some of these issues yourself. By wrestling with the problems, real learning takes place, which leads to a greater understanding of the math and enables you to generalize your knowledge to the next level.

I have shown you how to generate normal variables, binary variables, and ordinal variables that have a given mean and correlation structure. Read and reread chapter 9 of my book, which discusses "cut points" like Steve mentions. Also read Appendix B: Generating Multivariate Ordinal Variables, which is available on the book's Web page. If you are studying at the graduate level, you should also read the relevant references in those chapters.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

01-10-2014 10:20 AM

Thank you dr. Rich actually I am interesting in sas especially simulation data in sas.iml and I am phd student .applied statistics in my thesis I must simulate 6models with all combinations of data so I am so happy to meet you in sas community and I will read ch9as you said thank you for your encouraging.

Regards

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to thanoon

01-10-2014 11:46 AM

hi

if i want to simulate mixture models like (normal+ordered categorical, normal+dichotomous, ordered categorical +dichotomous) i must depend on mvnormal to create the previos models by using cut point or there is another method. thanks in advance

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to thanoon

01-10-2014 11:51 AM

Mixture models are described in *Simulating Data with SAS *pp 119-121 and pp140-141.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

01-10-2014 03:29 PM

Thanoon,

I believe you are confusing mixture models, in which a single variable comes from one of a finite number of distributions (finite mixture model) or contaminated mixture models, with data ensembles having a variety of variables of different distributions, but with known (or possibly unknown, but still estimable) covariances between the variables. In the first case, which is not what I think you are trying to accomplish, the code is given in *Simulating Data with SAS.* However, for the data ensembles, where the variables come from different distributions but have some sort of underlying covariance, you will need to search out conjoint distributions. If, however, you can reasonably presuppose that the ordinal variables (or dichotomous variables, in the extreme case) are merely aggregated representations of underlying continuous distributions, then there is a wholly different approach. And it is not well researched having lots of gaps in theory, thus making it a very suitable topic for dissertation research.

Steve Denham