[R] simulating Likert-type data

Fernando Marmolejo Ramos fernando.marmolejoramos at adelaide.edu.au
Mon Jun 15 08:45:22 CEST 2009


Dear R members

Could someone indicate me how to simulate Likert-type data using the GAMLSS
library and how to fit that data?

Let’s say, 50 random numbers in a variable that goes from -4 to +4 in steps of
1 (i.e., -4, -3, -2, -1, 0, 1, 2, 3, 4) with a mean of 2 and SD of 0.15 and
belonging to a normal distribution?

Cheers

Fer




More information about the R-help mailing list