# Example data provided with package
data(likert_example)
# First 6 rows of the example_data
head(likert_example)
# Draw three samples based on Score_1(from negatively skewed to normal)
# This example takes considerable computation time.
samples <- draw_sample_rep(dist=likert_example,n=200,rep=3,skew=0,
kurts=0,replacement =TRUE, col_id = 1,
col_total = numeric(),
exact = FALSE)
# to get first sample
samples$sample[[1]]
# to get second sample
samples$sample[[2]]
if (FALSE) {
# to export 10 samples
for(i in 1:3){
write.csv(samples$sample[[i]],row.names = FALSE,paste("sample_",i,".csv",sep=""))
}
}
Run the code above in your browser using DataLab