OHI-Science / ohi-science.github.io

Ocean Health Index - website
ohi-science.org
7 stars 7 forks source link

Subcomponents of a goal- Average in functions.r? #9

Open jennifergriffiths opened 8 years ago

jennifergriffiths commented 8 years ago

In CW, we have decided to have NUT, CON, and TRA, as sub-components. But, we want them to have their own pressures and goal-specific regulation resilience.

How does this work in terms of the status calculation in functions.r and what is sent on for the final calculate scores? I would think that sub-component status and trend scores should be averaged and only one value for CW sent on (this is what I have done right now). But not sure if this then poses problems for the future status calculation if we want each sub-component to have its own pressures and resilience?

jules32 commented 8 years ago

Hi @jennifergriffiths,

You can add your subcomponents (nutrients, contaminants, trash) as individual rows within the pressures_matrix.csv, like NP or CS has. Then, you'll be able to have specific pressures (columns) act individually on the CW components (your new rows).

And you're right that the subcomponents will be combined into one value for CW status and trend, and the same will occur for pressures as well.

jennifergriffiths commented 8 years ago

Hi @jules32 Thanks, I understand the architecture of setting it up in csv files.

But I can't visualize the math that is then done to go from the individual components (as registered in the csv layer) to the equation for future status which is only for the goal as a whole. Sorry if I am being dense - it seems like this step is not shown in the equations or verbally anywhere?

Maybe this is something best sorted out in June on skype - probably easiest to see /hear where I am going astray!

Thanks again!

jules32 commented 8 years ago

Hi @jennifergriffiths,

The short answer is that the pressures components will be calculated separately by ohicore::CalculatePressuresAll() before being combined into a single pressure score for CW, which then is used for the likely future state score, which is then combined with the single status score to create the overall Index score. So the components are calculated separately for pressures but not for long before being combined into a single pressure score for CW.

Does this help?

On Thu, May 12, 2016 at 11:09 PM, jennifergriffiths < notifications@github.com> wrote:

Hi @jules32 https://github.com/jules32 Thanks, I understand the architecture of setting it up in csv files.

But I can't visualize the math that is then done to go from the individual components (as registered in the csv layer) to the equation for future status which is only for the goal as a whole. Sorry if I am being dense - it seems like this step is not shown in the equations or verbally anywhere?

Maybe this is something best sorted out in June on skype - probably easiest to see /hear where I am going astray!

Thanks again!

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OHI-Science/ohi-science.github.io/issues/9#issuecomment-218959908

Julia Stewart Lowndes, PhD Project Scientist, Ocean Health Index National Center for Ecological Analysis and Synthesis (NCEAS) University of California, Santa Barbara (UCSB) website http://jules32.github.io/ • ohi-science http://ohi-science.org/ • github https://github.com/jules32 • twitter https://twitter.com/juliesquid

jennifergriffiths commented 8 years ago

Yes, thanks, that helps.

I'll look at the script when I get back and let you know if I have other questions.

I just think I need to be clear so that I don't explain things incorrectly!

Have a lovely weekend, Jennifer

On Fri, May 13, 2016 at 6:36 PM, Julia Stewart Lowndes < notifications@github.com> wrote:

Hi @jennifergriffiths,

The short answer is that the pressures components will be calculated separately by ohicore::CalculatePressuresAll() before being combined into a single pressure score for CW, which then is used for the likely future state score, which is then combined with the single status score to create the overall Index score. So the components are calculated separately for pressures but not for long before being combined into a single pressure score for CW.

Does this help?

On Thu, May 12, 2016 at 11:09 PM, jennifergriffiths < notifications@github.com> wrote:

Hi @jules32 https://github.com/jules32 Thanks, I understand the architecture of setting it up in csv files.

But I can't visualize the math that is then done to go from the individual components (as registered in the csv layer) to the equation for future status which is only for the goal as a whole. Sorry if I am being dense - it seems like this step is not shown in the equations or verbally anywhere?

Maybe this is something best sorted out in June on skype - probably easiest to see /hear where I am going astray!

Thanks again!

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub < https://github.com/OHI-Science/ohi-science.github.io/issues/9#issuecomment-218959908

Julia Stewart Lowndes, PhD Project Scientist, Ocean Health Index National Center for Ecological Analysis and Synthesis (NCEAS) University of California, Santa Barbara (UCSB) website http://jules32.github.io/ • ohi-science <http://ohi-science.org/

• github https://github.com/jules32 • twitter https://twitter.com/juliesquid

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/OHI-Science/ohi-science.github.io/issues/9#issuecomment-219094670

Jennifer R. Griffiths Researcher | Baltic Health Index | Stockholm Resilience Centre Stockholm University | SE-106 91 Stockholm | Sweden Email : jennifer.griffiths@su.se | Mobile: +46 (0)76 208 08 48 http://jennifergriffiths.wordpress.com/ | twitter: @JenAquatic