Calculate the min, max, mean and 50 for each marker
calcRstats(datpoly, out)
a data frame with columns MarkerName, mean, min, q50, q95, max which are all statistics of the R values per marker
a data frame in long format (input format for fitPoly) with at least columns MarkerName, SampleName, R
name of output file; if NA no file is written. File contains the same data as the return value
The data.frame returned by this function is used as input for function selMarkers_byR