Goherr: Fish consumption study: Difference between revisions
Line 470: | Line 470: | ||
* Model run 20.3.2019 with country-specific regression analyses [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=d00PhmXK5VNIxcbW]: printregr(countries=TRUE) | * Model run 20.3.2019 with country-specific regression analyses [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=d00PhmXK5VNIxcbW]: printregr(countries=TRUE) | ||
* Model run 22.3.2019 with better colour patterns [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=zWigMFErcWGX07PZ] | * Model run 22.3.2019 with better colour patterns [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=zWigMFErcWGX07PZ] | ||
* Model run 8.5.2019 with thlVerse code (not run on Opasnet) [http://en.opasnet.org/en-opwiki/index.php?title=Special:RTools&id=46qKuh08I7PHqXRX] | |||
Methodological concerns: | Methodological concerns: | ||
Line 491: | Line 492: | ||
BS <- 24 | BS <- 24 | ||
localcomp <- TRUE | localcomp <- TRUE | ||
thl <- FALSE | |||
# Set colours | # Set colours | ||
Line 554: | Line 556: | ||
cat(title, ": fractions shown on graph.\n") | cat(title, ": fractions shown on graph.\n") | ||
oprint(tmp@output) | oprint(tmp@output) | ||
tmp <- ggplot(tmp@output, aes(x=Reason, y=Result,colour=Country, group=Country))+ | if(thl) { | ||
tmp <- thlLinePlot(tmp@output, xvar=Reason, yvar=Result,groupvar=Country, | |||
colors= c("#519B2FFF", "#2F62ADFF", "#BE3F72FF","#88D0E6FF"), # #29A0C1FF"), | |||
# THL colors but fourth is brigter | |||
legend.position = c(0.85,0.2), base.size = BS, title=title, | |||
subtitle="Fraction of population")+ | |||
coord_flip()+ | |||
scale_y_continuous(labels=scales::percent_format(accuracy=1)) | |||
} else { | |||
tmp <- ggplot(tmp@output, aes(x=Reason, y=Result,colour=Country, group=Country))+ | |||
geom_point(shape=21, size=5, fill="Grey", stroke=2)+ | |||
geom_line(size=1.2)+ | |||
coord_flip()+ | |||
theme_gray(base_size=BS)+ | |||
scale_y_continuous(labels=scales::percent_format())+#accuracy=1))+ | |||
scale_colour_manual(values=colors)+ | |||
labs( | |||
title=title, | |||
x="Answer", | |||
y="Fraction of population") | |||
} | |||
return(tmp) | return(tmp) | ||
} | } | ||
Line 691: | Line 703: | ||
if(FALSE) { # Commented out because needs package thlVerse. | if(FALSE) { # Commented out because needs package thlVerse. | ||
dat <- opbase.data("Op_en7749", subset="Fish consumption as food in Finland") # [[Goherr: Fish consumption study]] | dat <- opbase.data("Op_en7749", subset="Fish consumption as food in Finland") # [[Goherr: Fish consumption study]] | ||
dat$Year <- as.numeric(as.character(dat$Year)) | dat$Year <- as.numeric(as.character(dat$Year)) | ||
gr <- thlLinePlot( | gr <- thlLinePlot( | ||
dat[dat$Species=="Total",], | |||
xvar=Year, | |||
yvar=Result, | |||
ylimits=c(0,12), | |||
groupvar=Origin, | |||
base.size=24, | |||
title="Fish consumption in Finland", | |||
ylabel="", | |||
subtitle="(kg/a per person)", | |||
legend.position = "bottom" | |||
) | ) | ||
if(localcomp) ggsave("Figure 1.pdf", width=8,height=6) | if(localcomp) ggsave("Figure 1.pdf", width=8,height=6) | ||
if(localcomp) ggsave("Figure 1.png", width=8,height=6) | if(localcomp) ggsave("Figure 1.png", width=8,height=6) | ||
} # End if | } # End if | ||
################## Get data | ################## Get data | ||
Line 719: | Line 731: | ||
openv.setN(50) | openv.setN(50) | ||
survey1 <- groups(survey1) | survey1 <- groups(survey1) | ||
levels(survey1$Country) <- c("FI","SE","DK","EE") | #levels(survey1$Country) <- c("FI","SE","DK","EE") # WHY was this here? It is a potential hazard. | ||
effinfo <- 0 # No policies implemented. | effinfo <- 0 # No policies implemented. | ||
effrecomm <- 0 | effrecomm <- 0 | ||
Line 837: | Line 849: | ||
) | ) | ||
if(localcomp) ggsave("Figure 6.pdf", width= | if(localcomp) ggsave("Figure 6.pdf", width=10,height=5) | ||
if(localcomp) ggsave("Figure 6.png", width= | if(localcomp) ggsave("Figure 6.png", width=10,height=5) | ||
reasons( | reasons( | ||
Line 845: | Line 857: | ||
) | ) | ||
if(localcomp) ggsave("Figure 7.pdf", width= | if(localcomp) ggsave("Figure 7.pdf", width=10,height=5) | ||
if(localcomp) ggsave("Figure 7.png", width= | if(localcomp) ggsave("Figure 7.png", width=10,height=5) | ||
impacts.sal <- impacts( | impacts.sal <- impacts( | ||
Line 974: | Line 986: | ||
) | ) | ||
if(localcomp) ggsave("Figure 4.pdf", width= | if(localcomp) ggsave("Figure 4.pdf", width=10, height=5) | ||
if(localcomp) ggsave("Figure 4.png", width= | if(localcomp) ggsave("Figure 4.png", width=10, height=5) | ||
# Figure 5. Reasons for not to eat Baltic herring. | # Figure 5. Reasons for not to eat Baltic herring. | ||
Line 988: | Line 1,000: | ||
) | ) | ||
if(localcomp) ggsave("Figure 5.pdf", width= | if(localcomp) ggsave("Figure 5.pdf", width=10, height=5) | ||
if(localcomp) ggsave("Figure 5.png", width= | if(localcomp) ggsave("Figure 5.png", width=10, height=5) | ||
# Figure 8. The role of different determinants on Baltic salmon consumption | # Figure 8. The role of different determinants on Baltic salmon consumption | ||
Line 1,010: | Line 1,022: | ||
) | ) | ||
ggplot(tmp, aes(x=Reason, weight=Result, fill=Response))+geom_bar()+ | if(thl) { | ||
tmp$Response <- factor(tmp$Response, levels=rev(levels(tmp$Response))) | |||
thlBarPlot(aggregate(tmp$Result,tmp[c("Reason","Response","Fish")],sum), | |||
xvar=Reason, yvar=x, groupvar=Response, legend.position = "bottom", | |||
horizontal = TRUE, stacked = TRUE, | |||
base.size = BS, title="Effect on Baltic fish consumption", | |||
subtitle="Fraction of population")+ | |||
facet_grid(.~Fish)+ | |||
scale_fill_manual(values=rev(c("gray",colors[c(1,6,5)])))+ | |||
scale_y_continuous(breaks=c(0.5,1),labels=scales::percent_format(accuracy=1)) | |||
} else { | |||
ggplot(tmp, aes(x=Reason, weight=Result, fill=Response))+geom_bar()+ | |||
coord_flip()+facet_grid(.~Fish)+ | |||
theme_gray(base_size=BS)+ | |||
theme(legend.position = "bottom")+ | |||
scale_fill_manual(values=c("gray",colors[c(1,6,5)]))+ | |||
scale_y_continuous(breaks=c(0.5,1),labels=scales::percent_format())+#accuracy=1))+ | |||
guides(fill=guide_legend(reverse=TRUE))+ | |||
labs( | |||
title="Effect on Baltic fish consumption", | |||
x="Cause", | |||
y="Fraction of population" | |||
) | |||
} | |||
if(localcomp) ggsave("Figure 8.pdf", width=12, height=7) | if(localcomp) ggsave("Figure 8.pdf", width=12, height=7) |
Revision as of 06:22, 8 May 2019
[show] This page is a study.
The page identifier is Op_en7749 |
---|
Question
How Baltic herring and salmon are used as human food in Baltic sea countries? Which determinants affect on people’s eating habits of these fish species?
Answer
Original questionnaire analysis results
- 13.3.2017 ----#: . These should be presented somewhere --Arja (talk) 07:39, 26 April 2017 (UTC) (type: truth; paradigms: science: comment)
Consumption amount estimates
- Model run 21.4.2017 [1] first distribution
- Model run 18.5.2017 with modelled data; with direct survey data
Rationale
Survey of eating habits of Baltic herring and salmon in Denmark, Estonia, Finland and Sweden has been done in September 2016 by Taloustutkimus oy. Content of the questionnaire can be accessed in Google drive. The actual data can be found from the link below (see Data).
Data
Questionnaire
Original datafile File:Goherr fish consumption.csv.
[show]Show details |
---|
Assumptions
The following assumptions are used:
Obs | Variable | Value | Unit | Result | Description |
---|---|---|---|---|---|
1 | freq | 1 | times /a | 0 | Never |
2 | freq | 2 | times /a | 0.5 - 0.9 | less than once a year |
3 | freq | 3 | times /a | 2 - 5 | A few times a year |
4 | freq | 4 | times /a | 12 - 36 | 1 - 3 times per month |
5 | freq | 5 | times /a | 52 | once a week |
6 | freq | 6 | times /a | 104 - 208 | 2 - 4 times per week |
7 | freq | 7 | times /a | 260 - 364 | 5 or more times per week |
8 | amdish | 1 | g /serving | 20 - 70 | 1/6 plate or below (50 grams) |
9 | amdish | 2 | g /serving | 70 - 130 | 1/3 plate (100 grams) |
10 | amdish | 3 | g /serving | 120 - 180 | 1/2 plate (150 grams) |
11 | amdish | 4 | g /serving | 170 - 230 | 2/3 plate (200 grams) |
12 | amdish | 5 | g /serving | 220 - 280 | 5/6 plate (250 grams) |
13 | amdish | 6 | g /serving | 270 - 400 | full plate (300 grams) |
14 | amdish | 7 | g /serving | 400 - 550 | overly full plate (500 grams) |
15 | ingredient | fraction | 0.1 - 0.3 | Fraction of fish in the dish | |
16 | amside | 1 | g /serving | 20 - 70 | 1/6 plate or below (50 grams) |
17 | amside | 2 | g /serving | 70 - 130 | 1/4 plate (100 grams) |
18 | amside | 3 | g /serving | 120 - 180 | 1/2 plate (150 grams) |
19 | amside | 4 | g /serving | 170 - 230 | 2/3 plate (200 grams) |
20 | amside | 5 | g /serving | 220 - 280 | 5/6 plate (250 grams) |
21 | change | 1 | fraction | -1 - -0.8 | Decrease it to zero |
22 | change | 2 | fraction | -0.9 - -0.5 | Decrease it to less than half |
23 | change | 3 | fraction | -0.6 - -0.1 | Decrease it a bit |
24 | change | 4 | fraction | 0 | No effect |
25 | change | 5 | fraction | 0.1 - 0.6 | Increase it a bit |
26 | change | 6 | fraction | 0.5 - 0.9 | Increase it over by half |
27 | change | 7 | fraction | 0.8 - 1.3 | Increase it over to double |
28 | change | 8 | fraction | -0.3 - 0.3 | Don't know |
Preprocessing
This code is used to preprocess the original questionnaire data from the above .csv file and to store the data as a usable variable to Opasnet base. The code stores a data.frame named survey.
Analyses
- Sketches about modelling determinants of eating (spring 2018) [4]
Figures, tables and stat analyses for the first manuscript
- Model run 15.6.2018 [5]
- Model run 16.6.2018 [6]
- Model run 20.6.2018 [7]
- Model run 11.7.2018 [8]
- Model run 9.8.2018 [9]
- Model run 12.8.2018 [10]
- Model run 12.9.2018 with country-specific regression analyses, open-ended answers and fig about eating any herring [11]
- Model run 5.2.2019 [12]
- Model run 6.2.2019 [13]
- Model run 7.2.2019 with systematic analyses of reasons to eat and not to eat Baltic herring [14]
- Model run 20.3.2019 with country-specific regression analyses [15]: printregr(countries=TRUE)
- Model run 22.3.2019 with better colour patterns [16]
- Model run 8.5.2019 with thlVerse code (not run on Opasnet) [17]
Methodological concerns:
- Is the warning in logistic regression important?
- Goodness of fit in logistic regression
- Calculate odds ratios in logistic regression
- You might treat independent ordinal variables as continuous
- Color blindness simulator to adjust colors for the color blind and for black and white printing
Luke data about fish consumption in Finland [18][19]
Obs | Origin | Species | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | 2014 | 2015 | 2016 | 2017 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | domestic fish | Total | 6.1 | 6.1 | 5.9 | 6.2 | 5.8 | 5.3 | 5.2 | 5.0 | 5.0 | 4.4 | 4.5 | 4.3 | 3.8 | 3.8 | 3.8 | 4.0 | 4.1 | 4.1 | 4.1 |
2 | domestic fish | Farmed rainbow trout | 1.6 | 1.6 | 1.6 | 1.6 | 1.3 | 1.3 | 1.4 | 1.1 | 1.1 | 1.2 | 1.2 | 1.1 | 1.0 | 1.0 | 1.1 | 1.1 | 1.3 | 1.2 | 1.2 |
3 | domestic fish | Baltic herring | 0.8 | 1.2 | 1.1 | 1.1 | 0.9 | 0.8 | 0.7 | 0.5 | 0.4 | 0.4 | 0.4 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 |
4 | domestic fish | Pike | 0.8 | 0.7 | 0.7 | 0.7 | 0.6 | 0.7 | 0.7 | 0.8 | 0.7 | 0.6 | 0.6 | 0.6 | 0.5 | 0.4 | 0.4 | 0.5 | 0.5 | 0.4 | 0.4 |
5 | domestic fish | Perch | 0.7 | 0.7 | 0.7 | 0.7 | 0.6 | 0.6 | 0.6 | 0.7 | 0.7 | 0.5 | 0.5 | 0.5 | 0.4 | 0.4 | 0.4 | 0.5 | 0.5 | 0.4 | 0.4 |
6 | domestic fish | Vendace | 0.7 | 0.7 | 0.7 | 0.7 | 0.8 | 0.8 | 0.7 | 0.6 | 0.6 | 0.6 | 0.6 | 0.7 | 0.6 | 0.6 | 0.6 | 0.6 | 0.6 | 0.5 | 0.6 |
7 | domestic fish | European whitefish | 0.4 | 0.4 | 0.4 | 0.4 | 0.3 | 0.3 | 0.3 | 0.3 | 0.5 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.2 | 0.3 | 0.3 |
8 | domestic fish | Pike perch | 0.3 | 0.2 | 0.2 | 0.2 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.4 | 0.4 |
9 | domestic fish | Other domestic fish | 0.8 | 0.6 | 0.5 | 0.8 | 1.0 | 0.5 | 0.5 | 0.7 | 0.7 | 0.5 | 0.6 | 0.5 | 0.4 | 0.5 | 0.4 | 0.5 | 0.4 | 0.5 | 0.5 |
10 | imported fish | Total | 6.0 | 6.2 | 7.0 | 7.1 | 8.0 | 8.6 | 7.9 | 8.6 | 9.7 | 9.7 | 9.3 | 10.2 | 11.1 | 10.9 | 10.8 | 10.9 | 10.2 | 9.1 | 9.8 |
11 | imported fish | Farmed rainbow trout | 0.2 | 0.3 | 0.4 | 0.6 | 0.9 | 0.6 | 0.6 | 0.7 | 1.0 | 1.0 | 0.8 | 0.8 | 0.9 | 1.0 | 0.9 | 0.9 | 0.8 | 0.9 | 0.8 |
12 | imported fish | Farmed salmon | 1.0 | 0.9 | 1.2 | 1.3 | 1.6 | 2.2 | 1.9 | 2.0 | 2.7 | 2.6 | 2.9 | 3.1 | 3.9 | 4.2 | 4.0 | 4.4 | 4.1 | 3.5 | 4.0 |
13 | imported fish | Tuna (prepared and preserved) | 1.0 | 1.2 | 1.4 | 1.4 | 1.5 | 1.6 | 1.6 | 1.5 | 1.7 | 1.7 | 1.6 | 1.7 | 1.7 | 1.6 | 1.9 | 1.7 | 1.6 | 1.4 | 1.5 |
14 | imported fish | Saithe (frozen fillet) | 0.7 | 0.6 | 0.7 | 0.7 | 0.7 | 0.6 | 0.4 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.6 | 0.5 | 0.5 | 0.5 | 0.5 | 0.4 | 0.4 |
15 | imported fish | Shrimps | 0.5 | 0.4 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.6 | 0.6 | 0.6 | 0.7 | 0.7 | 0.6 | 0.6 | 0.5 | 0.5 | 0.4 | 0.4 |
16 | imported fish | Herring and Baltic herring (preserved) | 0.6 | 0.5 | 0.6 | 0.6 | 0.5 | 0.4 | 0.5 | 0.6 | 0.5 | 0.6 | 0.3 | 0.5 | 0.4 | 0.3 | 0.4 | 0.5 | 0.5 | 0.5 | 0.5 |
17 | imported fish | Other imported fish | 2.0 | 2.3 | 2.2 | 2.0 | 2.3 | 2.7 | 2.4 | 2.8 | 2.7 | 2.7 | 2.6 | 2.9 | 2.9 | 2.7 | 2.5 | 2.3 | 2.3 | 1.9 | 2.2 |
Descriptive statistics

Model must contain predictors such as country, gender, age etc. Maybe we should first study what determinants are important? Model must also contain determinants that would increase or decrease fish consumption. This should be conditional on the current consumption. How? Maybe we should look at principal coordinates analysis with all questions to see how they behave.
Also look at correlation table to see clusters.
Some obvious results:
- If reports no fish eating, many subsequent answers are NA.
- No vitamins correlates negatively with vitamin intake.
- Unknown salmon correlates negatively with the types of salmon eaten.
- Different age categories correlate with each other.
However, there are also meaningful negative correlations:
- Country vs allergy
- Country vs Norwegian salmon and Rainbow trout
- Country vs not traditional.
- Country vs recommendation awareness
- Allergy vs economic wellbeing
- Baltic salmon use (4 questions) vs Don't like taste and Not used to
- All questions between Easy to cook ... Traditional dish
Meaningful positive correlations:
- All questions between Baltic salmon ... Rainbow trout
- How often Baltic salmon/herring/side salmon/side herring
- How much Baltic salmon/herring/side salmon/side herring
- Better availability ... Recommendation
- All questions between Economic wellbeing...Personal aims
- Omega3, Vitamin D, and Other vitamins
Model runs
- Model run 13.3.2017
- Model run 21.4.2017 [20] old code from Answer merged to this code and debugged
Bayes model
- Model run 3.3.2017. All variables assumed independent. [21]
- Model run 3.3.2017. p has more dimensions. [22]
- Model run 25.3.2017. Several model versions: strange binomial+multivarnormal, binomial, fractalised multivarnormal [23]
- Model run 27.3.2017 [24]
- Other models except multivariate normal were archived and removed from active code 29.3.2017.
- Model run 29.3.2017 with raw data graphs [25]
- Model run 29.3.2017 with salmon and herring ovariables stored [26]
- Model run 13.4.2017 with first version of coordinate matrix and principal coordinate analysis [27]
- Model run 20.4.2017 [28] code works but needs a safety check against outliers
- Model run 21.4.2017 [29] some model results plotted
- Model run 21.4.2017 [30] ovariables produced by the model stored.
- Model run 18.5.2017 [31] small updates
- 13.2.2018 old model run but with new Opasnet [32]
Initiate ovariables
jsp taken directly from data WITHOUT salmpling.
Amount estimated from a bayesian model.
- Model run 24.5.2017 [33]
Amount estimates directly from data rather than from a bayesian model.
- Initiation run 18.5.2017 [34]
- Initiation run 24.2.2018: sampling from survey rather than each respondent once [35]
Initiate other ovariables
- Code stores ovariables assump, often, much, oftenside, muchside, amount.
- Model run 19.5.2017 [36]
- Initiation run 24.5.2017 without jsp [37]
- Model run 8.6.2017 [38]
Other code
This is code for analysing EFSA food intake data about fish for BONUS GOHERR manuscript Ronkainen L, Lehikoinen A, Haapasaari P, Tuomisto JT. 2019.
Dependencies
The survey data will be used as input in the benefit-risk assessment of Baltic herring and salmon intake, which is part of the WP5 work in Goherr-project.
See also
- Useful information about Wishart distribution and related topics:
Keywords
References
Related files