Re: [R] simulation data in SEM

2014-09-14 Thread PO SU
PLZ mke sure the package installed which contains "mvrnorm" function. -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU At 2014-09-14 09:56:34, "thanoon younis" wrote: >Dear R members >I want to simulate data depending on SEM and when i applied the code below >i found

Re: [R] simulation data in SEM

2014-09-14 Thread David Winsemius
Adding back the list address: On Sep 14, 2014, at 9:53 AM, thanoon younis wrote: > thank you for your help but i still have error after putting semicolon > "Error: unexpected symbol in: > "Ro<-matrix(data=c(7.0,2.1,2.1,7.0), ncol=2) > yo<-matrix(data=NA,nrow=N,ncol=P) p"" The error message sho

Re: [R] simulation data in SEM

2014-09-14 Thread David Winsemius
On Sep 14, 2014, at 8:48 AM, Don McKenzie wrote: cc’ing to list, as requested in the posting guide, so that others may be able to help you. On Sep 14, 2014, at 8:45 AM, thanoon younis > wrote: Thank you very much for your reply the output is #Do simulation for 100 replications N<-1000;

Re: [R] simulation data in SEM

2014-09-14 Thread Don McKenzie
cc�ing to list, as requested in the posting guide, so that others may be able to help you. On Sep 14, 2014, at 8:45 AM, thanoon younis wrote: > Thank you very much for your reply > > the output is > > > #Do simulation for 100 replications > > N<-1000; P<-10 > > > > phi<-matrix(data=c(1.0,0.3

Re: [R] simulation data in SEM

2014-09-14 Thread Don McKenzie
What errors? What is your output? What output did you expect? On Sep 14, 2014, at 6:56 AM, thanoon younis wrote: > Dear R members > I want to simulate data depending on SEM and when i applied the code below > i found some errors and i still cannot run it. > many thanks in advance > > > Thano