View source: R/cateNelsonFixedY.r
cateNelsonFixedY | R Documentation |
Produces critical-x values for bivariate data according to a Cate-Nelson analysis for a given critical Y value.
cateNelsonFixedY(
x,
y,
cly = 0.95,
plotit = TRUE,
hollow = TRUE,
xlab = "X",
ylab = "Y",
trend = "positive",
clx = 1,
outlength = 20,
sortstat = "error"
)
x |
A vector of values for the x variable. |
y |
A vector of values for the y variable. |
cly |
= Critical Y value. |
plotit |
If |
hollow |
If |
xlab |
The label for the x-axis. |
ylab |
The label for the y-axis. |
trend |
|
clx |
Indicates which of the listed critical x values should be chosen as the critical x value for the plot. |
outlength |
Indicates the number of potential critical x values to display in the output. |
sortstat |
The statistic to sort by. Any of |
Cate-Nelson analysis divides bivariate data into two groups.
For data with a positive trend, one group has a
large x
value associated with a large y
value, and
the other group has a small x
value associated with a small
y
value. For a negative trend, a small x
is
associated with a large y
, and so on.
The analysis is useful for bivariate data which don't conform well to linear, curvilinear, or plateau models.
A data frame of statistics from the analysis: critical level for x, critical value for y, the number of observations in each of the quadrants (I, II, III, IV), the number of observations that conform with the model, the number of observations that do not conform to the model, the proportion of observations that conform with the model, the proportion of observations that do not conform to the model, a p-value for the Fisher exact test for the data divided into the groups indicated by the model, phi for the data divided into the groups indicated by the model, and Pearson's chi-square for the data divided into the groups indicated by the model.
Salvatore Mangiafico, mangiafico@njaes.rutgers.edu
https://rcompanion.org/rcompanion/h_02.html
cateNelson
data(Nurseries)
cateNelsonFixedY(x = Nurseries$Size,
y = Nurseries$Proportion,
cly = 0.70,
plotit = TRUE,
hollow = TRUE,
xlab = "Nursery size in hectares",
ylab = "Proportion of good practices adopted",
trend = "positive",
clx = 1,
outlength = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.