EU-kalat: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(→‎Bayes model for dioxin concentrations: technical improvements but mixing problem remains)
Line 131: Line 131:
* Model run 23.4.2017 [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=8DnCPAKsMxGALkjs] produces list conc.param and ovariable concentration
* Model run 23.4.2017 [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=8DnCPAKsMxGALkjs] produces list conc.param and ovariable concentration
* Model run 24.4.2017 [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=ujtyawudKqJ7mmjn]
* Model run 24.4.2017 [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=ujtyawudKqJ7mmjn]
* Model run 19.5.2017 without ovariable concentration [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=bXhdwkBaQQi1LTcu] {{attack|# |The model does not mix well, so the results should not be used for final results.|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 19:37, 19 May 2017 (UTC)}}
::{{comment|# |Maybe we should just estimate TEQs until the problem is fixed.|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 19:37, 19 May 2017 (UTC)}}


<rcode name="bayes" label="Sample Bayes model (for developers only)" graphics=1>
<rcode name="bayes" label="Sample Bayes model (for developers only)" graphics=1>
# This is code Op_en3014/bayes on page [[EU-kalat]]
# This is code Op_en3104/bayes on page [[EU-kalat]]


library(OpasnetUtils)
library(OpasnetUtils)
Line 241: Line 243:
)
)


concentration <- Ovariable(
objects.store(conc.param, samps.j)
  "concentration",
cat("Lists conc.params and samps.j stored.\n")
  dependencies = data.frame(Name = "conc.param"),
  formula = function(...) {
    jsp <- lapply(
      1:length(conc.param$mu[,1]),
      FUN = function(x) {
        temp <- exp(mvrnorm(openv$N, conc.param$mu[x,], conc.param$Omega[x,,]))
        dimnames(temp) <- c(list(Iter = 1:openv$N), dimnames(conc.param$mu)[2])
        return(temp)
      }
    )
    names(jsp) <- dimnames(conc.param$mu)[[1]]
    jsp <- melt(jsp, value.name = "Result")
    colnames(jsp)[colnames(jsp)=="L1"] <- "Fish" # Convert automatic name to meaningful
    jsp <- Ovariable(output=jsp, marginal = colnames(jsp) != "Result")
    return(jsp)
  }
)
 
objects.store(concentration, conc.param, samps.j)
cat("Ovariable concentration and lists conc.params and samps.j stored.\n")


# Predictions for all congeners of fish1 (Baltic herring)
# Predictions for all congeners of fish1 (Baltic herring)
Line 274: Line 256:
# Predictions for pike for omegas and PeCDD
# Predictions for pike for omegas and PeCDD
scatterplotMatrix(t(samps.j$Omega[6,2,,,1]))
scatterplotMatrix(t(samps.j$Omega[6,2,,,1]))
concentration <- EvalOutput(concentration)


ggplot(melt(exp(samps.j$pred[,,,1])), aes(x=value, colour=Compound))+geom_density()+
ggplot(melt(exp(samps.j$pred[,,,1])), aes(x=value, colour=Compound))+geom_density()+
Line 290: Line 270:


plot(coda.j)
plot(coda.j)
</rcode>
'''Initiate concentration
* Model run 19.5.2017 [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=ystfGN6yfNwWNfnq]
<rcode name="initiate" label="Initiate concentration (for developers only)">
# This is code Op_en3104/initiate on page [[EU-kalat]]
library(OpasnetUtils)
concentration <- Ovariable(
  "concentration",
  dependencies = data.frame(Name = "conc.param", Ident = "Op_en3104/bayes"),
  formula = function(...) {
    jsp <- lapply(
      1:length(conc.param$mu[,1]),
      FUN = function(x) {
        temp <- exp(mvrnorm(openv$N, conc.param$mu[x,], conc.param$Omega[x,,]))
        dimnames(temp) <- c(list(Iter = 1:openv$N), dimnames(conc.param$mu)[2])
        return(temp)
      }
    )
    names(jsp) <- dimnames(conc.param$mu)[[1]]
    jsp <- melt(jsp, value.name = "Result")
    colnames(jsp)[colnames(jsp)=="L1"] <- "Fish" # Convert automatic name to meaningful
    jsp <- Ovariable(output=jsp, marginal = colnames(jsp) != "Result")
    return(jsp)
  }
)
objects.store(concentration)
cat("Ovariable concentration stored.\n")
</rcode>
</rcode>



Revision as of 19:37, 19 May 2017


EU-kalat is a study, where concentrations of PCDD/Fs, PCBs, PBDEs and heavy metals have been measured from fish

Question

The scope of EU-kalat study was to measure concentrations of persistent organic pollutants (POPs) including dioxin (PCDD/F), PCB and BDE in fish from Baltic sea and Finnish inland lakes and rivers. [1] [2] [3].

Answer

The original sample results can be acquired from Opasnet base. The study showed that levels of PCDD/Fs and PCBs depends especially on the fish species. Highest levels were on salmon and large sized herring. Levels of PCDD/Fs exceeded maximum level of 4 pg TEQ/g fw multiple times. Levels of PCDD/Fs were correlated positively with age of the fish.

Mean congener concentrations as WHO2005-TEQ in Baltic herring can be printed out with the Run code below.

+ Show code

Rationale

Data

Data was collected between 2009-2010. The study contains years, tissue type, fish species, and fat content for each concentration measurement. Number of observations is 285.

There is a new study EU-kalat 3, which will produce results in 2016.

Calculations

+ Show code

Bayes model for dioxin concentrations

  • Model run 28.2.2017 [6]
  • Model run 28.2.2017 with corrected survey model [7]
  • Model run 28.2.2017 with Mu estimates [8]
  • Model run 1.3.2017 [9]
  • Model run 23.4.2017 [10] produces list conc.param and ovariable concentration
  • Model run 24.4.2017 [11]
  • Model run 19.5.2017 without ovariable concentration [12] ⇤--#: . The model does not mix well, so the results should not be used for final results. --Jouni (talk) 19:37, 19 May 2017 (UTC) (type: truth; paradigms: science: attack)
----#: . Maybe we should just estimate TEQs until the problem is fixed. --Jouni (talk) 19:37, 19 May 2017 (UTC) (type: truth; paradigms: science: comment)

+ Show code

Initiate concentration

  • Model run 19.5.2017 [13]

+ Show code

See also

References

  1. A. Hallikainen, H. Kiviranta, P. Isosaari, T. Vartiainen, R. Parmanne, P.J. Vuorinen: Kotimaisen järvi- ja merikalan dioksiinien, furaanien, dioksiinien kaltaisten PCB-yhdisteiden ja polybromattujen difenyylieettereiden pitoisuudet. Elintarvikeviraston julkaisuja 1/2004. [1]
  2. E-R.Venäläinen, A. Hallikainen, R. Parmanne, P.J. Vuorinen: Kotimaisen järvi- ja merikalan raskasmetallipitoisuudet. Elintarvikeviraston julkaisuja 3/2004. [2]
  3. Anja Hallikainen, Riikka Airaksinen, Panu Rantakokko, Jani Koponen, Jaakko Mannio, Pekka J. Vuorinen, Timo Jääskeläinen, Hannu Kiviranta. Itämeren kalan ja muun kotimaisen kalan ympäristömyrkyt: PCDD/F-, PCB-, PBDE-, PFC- ja OT-yhdisteet. Eviran tutkimuksia 2/2011. ISSN 1797-2981 ISBN 978-952-225-083-4 [3]