[R] Wilcoxon Test

2017-04-21 Thread Tripoli Massimiliano
Dear R users, Why the result of Wilcoxon sum rank test by R is different from sas https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_npar1way_sect022.htm The code is next: sampleA <- c(1.94, 1.94, 2.92, 2.92, 2.92, 2.92, 3.27, 3.27, 3.27, 3.27, 3.7

[R] Freq in dataframe

2016-08-05 Thread Tripoli Massimiliano
Dear R users, # This is my data: ddat <- array(c(8,10,7,13,8,15, 7,9,6,9,7,10, 11,13,7,16,8,16 ), dim = c(2,3,3), dimnames = list( Time = c("Week 32","Week 52"), Dose = c("Dose 1","Dose 2","Dose