
?sample
 

Date: Sun, 26 Jun 2011 02:26:10 -0700
From: wjcao16@hotmail.com
To: r-help@r-project.org
Subject: [R] how to simulate Likert-type data using R

Dear R members 
 
Could someone tell me how to simulate Likert-type data using the rnorm
function. 
 
Let's say, 200*15 random numbers in a variable that goes from 1 to 4 in
steps of 
1 (i.e., 1, 2, 3, 4)  belonging to a normal distribution? 
 
random.data <— matrix(rnorm(200 * 15), nrow = 200, ncol = 15) 
random.data 
 
The result cannot be reached.
 
could one help me revise the syntax?
 
Cheers 
 
cao
 
 
--
View this message in context: http://r.789695.n4.nabble.com/how-to-simulate-Likert-type-data-using-R-tp3625664p3625664.html
Sent from the R help mailing list archive at Nabble.com.
	[[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. 		 	   		  
	[[alternative HTML version deleted]]

