Dear Sir, Yes, I want to generate the data by two Gaussian but mean from one of them generatated from polar its coordinates. I am confused about the algorithm? I know how to generate two Gaussian data with certain mean&covariance matrix using mvnorm but what about mean from its polar coordinates? Thanks for your help.
Best wishes, Iut ------Pesan Asli------ Dari: John Kane Ke: Iut Tri Utami Ke: r-help@r-project.org Perihal: RE: [R] example Terkirim: 27 Apr 2013 8:19 PM https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example It is not clear what you want. Do you need to generate the data or do something with existing data? John Kane Kingston ON Canada > -----Original Message----- > From: triutami....@gmail.com > Sent: Sat, 27 Apr 2013 01:38:23 +0700 > To: r-help@r-project.org > Subject: [R] example > > Dear Sir, > My name is Iut Tri Utami. i am beginning user. I have a problem about > generate data in R. It consists of one disk generated by a Gaussian N(0, > 0.167) and one ring generated by a Gaussian N(R, 0.1). The mean R was > generated from its polar coordinates. The angle was drawn from a uniform > distribution on the interval (0, 2p), and the radius, from a Gaussian > N(1.5, 0.1). The class sizes are 500 and 2000. > > > Thank you very much for your attention and, I wish that you will help me. > > Best wishes , > > Iut Tri Utami > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ____________________________________________________________ Send your photos by email in seconds... TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if3 Works in all emails, instant messengers, blogs, forums and social networks. Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung Teruuusss...! ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.