powered by
This function performs a t-test for the mean difference for paired data, and produces a scatterplot of one column against the other column, showing whether there was any benefit to using the paired design.
onesamp(dset, x="unsprayed", y="sprayed", xlab=NULL, ylab=NULL, dubious=NULL, conv=NULL, dig=2, ...)
A scatterplot of y against x together with estimates of standard errors and standard errors of the difference (y-x).
y
x
Also produced is a confidence interval and p-value for the test.
a matrix or dataframe having two columns
name of column to play the role of the `predictor'
name of column to play the role of the `response'
horizontal axis label
vertical axis label
vector of logical (FALSE/TRUE) values, specifying points that are to be omitted
FALSE
TRUE
scaling factor that should be applied to data
round SE to this number of digits for dispplay on graph
Further arguments, to be passed to plot()
plot()
J.H. Maindonald
onesamp(dset = pair65, x = "ambient", y = "heated", xlab = "Amount of stretch (ambient)", ylab = "Amount of stretch (heated)")
Run the code above in your browser using DataLab