Hello, I created two dates (date of birth of mother (datem), and date delivery (dated)). I also created a variable "age".
From "age", in the field calculation, I can calculate the age field in the
results because the variable does not appear (below results, "none" is noted). While, if I create another variable "age2, in the calculation, "age" appears in the window (and I write age = dated - datem). So in Entry, age is noted in variable "age" and not in "age2".... It is quite complicated... Why should I create two variables ???? I miss the ease of entry with a EPIDATA ENTRY 3.1 before with the formula (age2=(dated-datem)/365.25..... Thank you.
Kind regards
Bernard BRANGER, Nantes, France
You can put the age calculation into "dated". "age" will show up.
Jamie
On 2012-06-16, at 2:23 PM, epidata-list@lists.umanitoba.ca wrote:
Hello, I created two dates (date of birth of mother (datem), and date delivery (dated)). I also created a variable "age".
From "age", in the field calculation, I can calculate the age field in the
results because the variable does not appear (below results, "none" is noted). While, if I create another variable "age2, in the calculation, "age" appears in the window (and I write age = dated - datem). So in Entry, age is noted in variable "age" and not in "age2".... It is quite complicated... Why should I create two variables ???? I miss the ease of entry with a EPIDATA ENTRY 3.1 before with the formula (age2=(dated-datem)/365.25..... Thank you.
Kind regards
Bernard BRANGER, Nantes, France
EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
On 2012-06-16 20:23, epidata-list@lists.umanitoba.ca wrote:
Hello, I created two dates (date of birth of mother (datem), and date delivery (dated)). I also created a variable "age".
From "age", in the field calculation, I can calculate the age field in the
results because the variable does not appear (below results, "none" is noted). While, if I create another variable "age2, in the calculation, "age" appears in the window (and I write age = dated - datem). So in Entry, age is noted in variable "age" and not in "age2".... It is quite complicated... Why should I create two variables ???? I miss the ease of entry with a EPIDATA ENTRY 3.1 before with the formula (age2=(dated-datem)/365.25..... Thank you.
Kind regards
Bernard BRANGER, Nantes, France
I is not possible to use the current field as a result field also. This is because a user entering data may not notice that the entered data has been changed due to a calculation.
This goes agains our philosophy of not altering user data, at least not without giving a warning.
Best practice for use of calculations is to think of them as an "After Entry" in the old EpiData 3.1, hence put the calculation in the last field used in the calculation. And then make the result field "No Enter" to avoid overwriting data by accident.
Kind regards, Torsten Bonde Christiansen.
Det gode her ville vel være, at vi havde et eksempel på en epx liggende ? vh Jens On 06/18/2012 07:55 AM, epidata-list@lists.umanitoba.ca wrote:
On 2012-06-16 20:23, epidata-list@lists.umanitoba.ca wrote:
Hello, I created two dates (date of birth of mother (datem), and date delivery (dated)). I also created a variable "age".
From "age", in the field calculation, I can calculate the age field
in the results because the variable does not appear (below results, "none" is noted). While, if I create another variable "age2, in the calculation, "age" appears in the window (and I write age = dated - datem). So in Entry, age is noted in variable "age" and not in "age2".... It is quite complicated... Why should I create two variables ???? I miss the ease of entry with a EPIDATA ENTRY 3.1 before with the formula (age2=(dated-datem)/365.25..... Thank you.
Kind regards
Bernard BRANGER, Nantes, France
I is not possible to use the current field as a result field also. This is because a user entering data may not notice that the entered data has been changed due to a calculation.
This goes agains our philosophy of not altering user data, at least not without giving a warning.
Best practice for use of calculations is to think of them as an "After Entry" in the old EpiData 3.1, hence put the calculation in the last field used in the calculation. And then make the result field "No Enter" to avoid overwriting data by accident.
Kind regards, Torsten Bonde Christiansen. _______________________________________________ EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
Dear all
Unfortunately I managed to answer in Danish on this request to the list and not internally.
When you install Manager the sample file actually contains an example on the date / age calculation requested by Bernard Branger.
We are currently building a wiki, where examples for solutions on this could be added.
Please note, that anyone who wish to add or exemplify are welcome to do so and can be added to the usergroup with rights to add to the wiki under construction at http://www.epidata.info/dokuwiki
Regards Jens Lauritsen
On 06/18/2012 07:55 AM, epidata-list@lists.umanitoba.ca wrote:
On 2012-06-16 20:23, epidata-list@lists.umanitoba.ca wrote:
Hello, I created two dates (date of birth of mother (datem), and date delivery (dated)). I also created a variable "age".
From "age", in the field calculation, I can calculate the age field
in the results because the variable does not appear (below results, "none" is noted). While, if I create another variable "age2, in the calculation, "age" appears in the window (and I write age = dated - datem). So in Entry, age is noted in variable "age" and not in "age2".... It is quite complicated... Why should I create two variables ???? I miss the ease of entry with a EPIDATA ENTRY 3.1 before with the formula (age2=(dated-datem)/365.25..... Thank you.
Kind regards
Bernard BRANGER, Nantes, France
participants (1)
-
epidata-list@lists.umanitoba.ca