-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
region2/mu-comparison: add option to set quantile levels for circular variable summaries. #106
Comments
Not a bad idea. We may need to do some simulation studies to determine if there is a critical number of observations relative to radial "pattern" required to make much sense of the figures. Or, even simpler, we could use the I'll work on some ideas and add to the |
It would be helpful to standardize interpretation of those plots -- but that is more for cases where we have limited data (e.g. pedon observations) not for the mu-comp report. Seems like a good issue for {sharpshootR}. We generally do not populate aspect (left empty) for components where it is "irrelevant" (low slopes) or "occurs on all aspects." That convention is not at all consistent across SSURGO. For mu-comp report, I don't rely much on the figures other than for confirmation of (lack of) concept. My interest in using other quantiles is to see what the rest of the distribution looks like without going down the rabbit hole of modifying bandwidth and visualizations of points [or applying a rigorous statistical test to mapunit samples where my concept is at component level] I don't think there is anything in the NASIS guidance/metadata about when (in terms of how strong of an aspect effect you have) you should or shouldn't populate aspect. I suppose you mean that you want to provide new guidance on this? Was curious how this is done elsewhere. Here is a quick demo looking at how wide ranges are in SSURGO components. Not sure that the first 100k component records are representative but this generally confirmed my suspicions about how the data have been populated. The most common case of the non-NA aspects is the full circle, followed by 180, 270 and 90 degree portions and as a few others (135, 315?). There are some ranges that are not snapped to cardinal direction that could have been statistically derived.
|
Currently quantile levels for circular summaries are hard-coded in
report.Rmd
. These values could be retained as default for backwards compatibility, and allow for (optional) definition inconfig.R
-- alternately we could just use the defaultp.quantiles
that are used for non-circular.This will make the default output with standard quantiles (
q=c(0, 0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99, 1)
) much more complicated, but will offer more flexibility and ability to distinguish central tendency in more dispersed circular sample sets.EDIT: A neat point about adding a new option to config file is that if we force the quantile vector to have length three then we can calculate "clockwise" vs "counterclockwise". While there is no general relationship between e,g 10th/90th percentiles and "clockwise" vs. "counterclockwise", if the RV is known, one can calculate and re-arrange table output.
The text was updated successfully, but these errors were encountered: