Goherr: Fish consumption study: Difference between revisions

From Opasnet
Jump to navigation Jump to search
m (→‎Initiate ovariables: amount updated)
m (→‎Initiate ovariables: jsp updated)
Line 853: Line 853:
objects.latest("Op_en7749", code_name="preprocess2") # original survey data (surv)
objects.latest("Op_en7749", code_name="preprocess2") # original survey data (surv)


sur <- survey[c(157,1,3,158,16,29,30,31,46:49,86,95:98)]
sur <- survey[c(157,1,3,158,16,29,30,31,46:49,75,80,86,95:98,125,130)]


#colnames(sur)
#colnames(sur) NOT UPDATED
#[1] "Row"              "Country"          "Gender"            "Ages"             
#[1] "Row"              "Country"          "Gender"            "Ages"             
#[5] "Eat.fish"          "How.often.fish"    "Eat.salmon"        "Baltic.salmon"     
#[5] "Eat.fish"          "How.often.fish"    "Eat.salmon"        "Baltic.salmon"     
Line 862: Line 862:
#[17] "How.much.side.BH"  
#[17] "How.much.side.BH"  


colnames(sur)[c(1,8:17)] <- c("Iter",rep(as.character(c(5,1:4)),2))
colnames(sur)[c(1,8:21)] <- c("Iter",rep(as.character(c(7,1:6)),2))
sur[8:17] <- sapply(sur[8:17], as.numeric)
sur[8:21] <- sapply(sur[8:21], as.numeric)
sur <- rbind(cbind(Fish="Herring", sur[-(8:12)]),
sur <- rbind(cbind(Fish="Herring", sur[-(8:14)]),
             cbind(Fish="Salmon", sur[-(13:17)])
             cbind(Fish="Salmon", sur[-(15:21)])
)
)
sur <- melt(
sur <- melt(
   sur,
   sur,
   measure.vars=as.character(1:5),
   measure.vars=as.character(1:7),
   variable.name="Question",
   variable.name="Question",
   value.name="Result"
   value.name="Result"

Revision as of 11:41, 21 December 2017


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

Do you want to use directly the survey data rather than modelled data?:

+ Show code

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.



Assumptions

The following assumptions are used:

Assumptions for calculations(-)
ObsVariableValueUnitResultDescription
1freq1times /a0Never
2freq2times /a0.5 - 0.9less than once a year
3freq3times /a2 - 5A few times a year
4freq4times /a12 - 361 - 3 times per month
5freq5times /a52once a week
6freq6times /a104 - 2082 - 4 times per week
7freq7times /a260 - 3645 or more times per week
8amdish1g /serving20 - 701/6 plate or below (50 grams)
9amdish2g /serving70 - 1301/3 plate (100 grams)
10amdish3g /serving120 - 1801/2 plate (150 grams)
11amdish4g /serving170 - 2302/3 plate (200 grams)
12amdish5g /serving220 - 2805/6 plate (250 grams)
13amdish6g /serving270 - 400full plate (300 grams)
14amdish7g /serving400 - 550overly full plate (500 grams)
15ingredientfraction0.1 - 0.3Fraction of fish in the dish
16amside1g /serving20 - 701/6 plate or below (50 grams)
17amside2g /serving70 - 1301/4 plate (100 grams)
18amside3g /serving120 - 1801/2 plate (150 grams)
19amside4g /serving170 - 2302/3 plate (200 grams)
20amside5g /serving220 - 2805/6 plate (250 grams)
21change1fraction-1Decrease it to zero
22change2fraction-0.9 - -0.6Decrease it to less than half
23change3fraction-0.1 - -0.4Decrease it a bit
24change4fraction0No effect
25change5fraction0.1 - 0.4Increase it a bit
26change6fraction0.6 - 0.9Increase it over by half
27change7fraction1.1 - 1.3Increase it over to double
28change8fraction0Don'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.

  • Model run 13.4.2017 [2]
  • Model run 20.4.2017 [3] (contains surv and helping vectors)
  • Model run 21.4.2017 [4] surv contains Eatfish, Eatherr and Eatsalm as columns.

+ Show code

Analyses

Descriptive statistics

Correlation matrix of all questions in the survey (answers converted to numbers).

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

+ Show code

Bayes model

  • Model run 3.3.2017. All variables assumed independent. [6]
  • Model run 3.3.2017. p has more dimensions. [7]
  • Model run 25.3.2017. Several model versions: strange binomial+multivarnormal, binomial, fractalised multivarnormal [8]
  • Model run 27.3.2017 [9]
  • Other models except multivariate normal were archived and removed from active code 29.3.2017.
  • Model run 29.3.2017 with raw data graphs [10]
  • Model run 29.3.2017 with salmon and herring ovariables stored [11]
  • Model run 13.4.2017 with first version of coordinate matrix and principal coordinate analysis [12]
  • Model run 20.4.2017 [13] code works but needs a safety check against outliers
  • Model run 21.4.2017 [14] some model results plotted
  • Model run 21.4.2017 [15] ovariables produced by the model stored.
  • Model run 18.5.2017 [16] small updates

+ Show code

Initiate ovariables

Amount estimated from a bayesian model.

  • Model run 24.5.2017 [17]

+ Show code

Amount estimates directly from data rather than from a bayesian model.

  • Initiation run 18.5.2017 [18]

+ Show code

Initiate other ovariables

  • Code stores ovariables assump, often, much, oftenside, muchside, amount.
  • Model run 19.5.2017 [19]
  • Initiation run 24.5.2017 without jsp [20]
  • Model run 8.6.2017 [21]

+ Show code

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

Keywords

References


Related files

Goherr: Fish consumption study. Opasnet . [22]. Accessed 27 Nov 2024.