View source: R/find_counternull_values.R
find_counternull_values | R Documentation |
Retrieves counternull value set and returns object of "counternull" class.
find_counternull_values(null_r, counts = NULL, width = NULL, bw = NULL)
null_r |
"null_rand" object corresponding to data |
counts |
Vector containing lower and upper bounds for number of test statistics more extreme than observed test statistic in counternull randomization distribution (optional) |
width |
Integer indicating the number of values to search for to retrieve counternull set. Default value = 10000. (Increasing this argument may result in additional counternull values being found.) (optional) |
bw |
Histogram bin width (optional) |
Call summary on "counternull" class to retrieve range of counternull values. Call plot on "counternull" class for visualization of counternull distribution.
Argument "counts" must contain whole numbers for bounds.Lower bound must be smaller than upper bound. If argument is not specified, counternull values will be obtained using the "counts" argument from the specified "null_rand" argument.
If no counternull values are found, all entries in class are set to null. If only one set of counternull values are found, "perm_two", low_two" and "high_two" are set to null.
Class "counternull" with 6 entries:
Counternull test statistics for first counternull set
Counternull test statistics for second counternull set
Lower bound of counternull set
Upper bound of counternull set
Lower bound of second counternull set
Upper bound of second counternull set
Specified "null_rand" object
Specified bin width
n_r = create_null_rand(sample_data$turn_angle, sample_data$w,
sample_matrix, test_stat = c("diffmeans"))
c = find_counternull_values(n_r)
summary(c)
plot(c)
c = find_counternull_values(n_r, c(56,60))
summary(c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.