lrperlmu / emotional_clarity

Micro interventions to help teens get through stress.
0 stars 2 forks source link

Logging #21

Open lrperlmu opened 5 years ago

lrperlmu commented 5 years ago

Log data from the model into firebase

lrperlmu commented 4 years ago
== Data structure of Firebase data store ==
{
    events: {
        uid: {
            pre-measure-start: time,
            pre-selfreport-start: time,
            mood-induction-start: time,
            app-start: time,
            post-measure-start: time,
            post-survey-start: time,
            end: time,
        },
        ...
    }, // times

    measures: {
        uid: {
            pre-measure: { // momentary DERS
                question: answer,
                ...,
            },
            pre-selfreport { // what are your emotions and how certain?
                emotions: answer,
                certainty: number,
            }
            mood-induction { // response to the writing exercise
                brief: string,
                full: string,
            },
            post-measure: { // momentary DERS
                question: answer,
                ...,
            },
            post-selfreport {  // what are your emotions and how certain?
                emotions: answer,
                certainty: number,
            },
            post-survey { // how well did the app work
                question: answer,
                ...,
            },
        },
        ...,
    } // measures

    app_responses: {
        uid: { // responses to checkboxes
            question: boolean,
            ...,
        },
        ...,
    } // app_responses
}
lrperlmu commented 4 years ago

Implemented logging for Events and App Responses.

Measures that need to be logged do not yet exist in Master

lrperlmu commented 4 years ago

Earlier we wanted to log timestamps of the frame transitions. Not sure if this data is necessary, but consider still implementing it to reduce potential regrets.

Journal 9/1

9/10

To do

lrperlmu commented 4 years ago

implemented. waiting to close until verification that all the data needed for stats analysis is present.