search for: survey_start

Displaying 4 results from an estimated 4 matches for "survey_start".

2018 Feb 21
7
alternative for multiple if_else statements
..., I am having trouble trying to figure out why if_else is behaving the way it is, it may be my code or the way the data is structured. Below is a snapshot of a database am working on and it represents a longitudinal survey of study participants in a trial with weekly follow up. The variable "survey_start" represents the start of the study-defined one year follow up (which we called "survey_year"). I am trying to populate all subsequent entries for each participant, per survey year, with the entry "survey" followed by an underscore and the respective year, eg. survey_2014....
2018 Feb 22
0
alternative for multiple if_else statements
...ble trying to figure out why if_else is behaving the way it is, it may be my code or the way the data is structured. > > Below is a snapshot of a database am working on and it represents a longitudinal survey of study participants in a trial with weekly follow up. > > The variable "survey_start" represents the start of the study-defined one year follow up (which we called "survey_year"). > > I am trying to populate all subsequent entries for each participant, per survey year, with the entry "survey" followed by an underscore and the respective year, eg. surv...
2018 Feb 26
0
alternative for multiple if_else statements
...o figure out why if_else is behaving the way it is, > it may be my code or the way the data is structured. > > Below is a snapshot of a database am working on and it represents a > longitudinal survey of study participants in a trial with weekly follow up. > > The variable "survey_start" represents the start of the study-defined one year > follow up (which we called "survey_year"). > > I am trying to populate all subsequent entries for each participant, per survey > year, with the entry "survey" followed by an underscore and the respective &gt...
2018 Feb 22
0
alternative for multiple if_else statements
...i Kevin, I ran the code on the full data set and was able to reproduce the problem that you are facing. My guess is that you have an error in your intuition and/or logic, and that this relates to the use of the subscript [1]. Specifically, on the full dataset, the condition trialData$date[trialData$survey_start == "Y" & trialData$year == 2013 & trialData$site == "site_1"] yields 412 matches, of which there are 9 unique ones, specifically April 2,3,4,5,8,10,11,16,17 In the full data set the first element that appears, i.e. subscript[1], is "2013-04-04". In the filt...