pfmc-assessments / PacFIN.Utilities

R code to manipulate data from the PacFIN database for assessments
http://pfmc-assessments.github.io/PacFIN.Utilities
Other
7 stars 1 forks source link

Move `age_representativeness_plot()` to {nwfscSurvey} #111

Open kellijohnson-NOAA opened 1 year ago

kellijohnson-NOAA commented 1 year ago

@chantelwetzel-noaa {nwfscSurvey} is the destination of choice right? https://github.com/pfmc-assessments/PacFIN.Utilities/blob/4683a3f12fc769f8b9ccb028c8dff594ddcf3cea/R/age_representativeness_plot.R#L34

Before doing so, finish the following tasks

initial figure that I am working on (mid convert to {ggplot2} is (haven't added $\hat{b}$ yet) test2

original figure was test_3

chantelwetzel-noaa commented 1 year ago

I think the {nwfscSurvey} is a good location for this. Could I add one more task to your list?

kellijohnson-NOAA commented 1 year ago

You bet @chantelwetzel-noaa! I moved it to my list so I won't forget.

kellijohnson-NOAA commented 1 year ago

I have a question ... should the K-S test and the distributions shown on the figure be from mutually exclusive data or should the comparison be all lengths vs lengths with ages? I am thinking that the comparison should be between lengths without ages versus lengths with ages such that no data point exists in the two data sets being compared.

brianlangseth-NOAA commented 1 year ago

I dont see any reason it has to be one or the other. Originally I did it to compare lengths with aged-lengths distributions, and thus there was some overlap. I think this has undergone adjustments that I haven't been following. So long as the KS test compares the two distributions that are being plotted, I think it is intuitively doing what it is supposed to be doing.