Commit Graph

23 Commits (54c712b1cd630c6be4c3b97f43c75901217552ee)

Author SHA1 Message Date
junos 98f1df81c6 Use the same function for ESM and other data. 2021-08-11 17:26:44 +02:00
junos ad85f79bc5 Move datetime calculation to a separate function. 2021-08-11 17:19:14 +02:00
junos a2180aee54 Fix assignment to use loc.
For assigning a value to selected rows (a subset), regular slicing using [] produces a KeyError.
2021-08-11 14:53:59 +02:00
junos e2808422db Implement a method to recode JCQ answers. 2021-07-05 18:24:22 +02:00
junos 48d7be780c Fix formatting. 2021-07-04 14:34:57 +02:00
junos 92a5787d62 Only convert some answers to numeric. 2021-07-04 14:34:13 +02:00
junos a6d8f70e7f Add date part of datetime when preprocessing. 2021-07-03 16:39:32 +02:00
junos e0da6757ec Clean up ESM by eliminating non-answers.
Convert radio string answer to numeric.
2021-07-03 16:34:11 +02:00
junos 74392f229a Start exploring PANAS data.
Add a function to clean up ESM data.
2021-07-02 16:33:48 +02:00
junos c29c7b19f2 Rename ESM exploration. 2021-07-02 16:05:36 +02:00
junos 7a12f68dfe Fix a bug where evening EMAs where also reclassified as daytime. 2021-06-11 20:17:17 +02:00
junos 294d4a2b49 Add a function to correct the morning questionnaires into daytime. 2021-06-11 16:44:33 +02:00
junos a3417c182a Add a function to determine EMA session time. 2021-06-11 16:34:09 +02:00
junos f48e5469e0 Finish labelling EMA sessions and document classify_sessions_adherence function. 2021-06-11 14:50:14 +02:00
junos 371e755159 Identify unique sessions and assign status.
Use CONSTANT variables for these statuses.
2021-06-11 13:50:24 +02:00
junos 04c069af47 Take the evening EMA time question into account as non-answered session. 2021-06-09 17:29:42 +02:00
junos 7177c8429f [WIP] Start calculating concordance.
Note, workday and morning EMAs have not been properly dealt with, but assumed answered.
2021-06-08 16:07:39 +02:00
junos d5cd76f05a [WIP] Prepare a function to classify adherence and illustrate steps in Jupyter Notebook. 2021-06-07 19:33:44 +02:00
junos 224dedaced Document the preprocess_esm function. 2021-06-07 16:50:46 +02:00
junos 2da9a8f9e3 Study session ID in depth. 2021-06-02 18:35:00 +02:00
junos a941b94d6c Expand ESM_JSON column and add esm example data. 2021-06-01 17:57:08 +02:00
junos 5cb527986b Look at the ESM data and test JSON expansion. 2021-06-01 12:10:42 +02:00
junos 0199b4f0f2 Add a method to transform ESM data and the test. 2021-05-27 18:10:34 +02:00