CompareRAWs: Compare two sets of grain size measurements to see if they...

Description Usage Arguments Details

Description

CompareRAWs is a function that takes two sets of grain size observations and uses a resampling approach with replacement to estimate whether or not the grain sizes for a percentile of interest from the two sample sets are statistically different. The analysis requires the entire set of individual b-axis measurements.

Usage

1
CompareRAWs(OBS1, OBS2, P = seq(5, 95, 5), alpha = 0.05)

Arguments

OBS1

is a vectory containing indivuala b axis measurments (in mm) for the first sample.

OBS2

is a vectory containing indivuala b axis measurments (in mm) for the second sample.

P

numeric vector of percentiles to be compared. The default is to compare the 5th to the 95th percentile, in increments of 5

alpha

the desired confidence level for which to calculate a confidence interval. The default is to set alpha = 0.05, for a 95% Confidence Interval

Details

The function returns a data frame listing the percentile being compared, the estimate of that percentile for sample 1, the estimate for sample 2, and a logical variable that indicates whether the percentiles are statistically different or not.


bceaton/GSDtools documentation built on June 7, 2019, 12:53 a.m.