Correction to: npj Digital Medicine https://doi.org/10.1038/s41746-021-00391-x, published online 16 February 2021

The original version of the published Article mistakenly omitted the variable names in the description of the statistical methods. To improve clarity, the variable names have been added to the description of the statistical methods as follows:

$$Y_{\mathrm{i,t}}\sim \beta _{1}{\mathrm{medication}}_{{\mathrm{i,t}}} + \mathop{\Sigma}\nolimits _{\mathrm{j}}\beta _{\mathrm{j}}{BM}{\mathrm{pattern}}_{{\mathrm{j,i,t}}}+ \mathop{\Sigma}\nolimits _{\mathrm{k}}\beta_{\mathrm{k}}{\mathrm{medication}}_{{\mathrm{i,t}}}\; {{\,}^{\ast}}\; {{BM}}{\mathrm{pattern}}_{{\mathrm{j,i}},{\mathrm{t}}} + u_{\mathrm{i}}$$
(1)

Where:

  1. 1.

    Yi,t is a day level activity feature or day level self-report of constipation severity for individual i (for i = 1, 2, 3, …, n, where n is the number of participants in the Behavioral Analysis Population), on day t (for t = 1, 2, 3, …, 112th day of study)

  2. 2.

    medicationi,t is a binary variable that is 1 for individual i on day t if a laxative is reported taken, else 0

  3. 3.

    BMpatternj,i,t is a dummy-coded variable indicating if individual i reported being constipated or irregular as opposed to regular on day t, with regular BM pattern being the reference state

  4. 4.

    ui is a random intercept that is allowed to vary for each participant

$${\mathrm{Medication}}_{\mathrm{i,t}} = \beta _0 + \mathop{\Sigma}\nolimits _{\mathrm{j}}\beta _{\mathrm{j}}{\mathrm{symptom}}_{\mathrm{j,i,t}} + \mathop{\Sigma}\nolimits _{\mathrm{k}}\beta _{\mathrm{k}}{{BM}}{\mathrm{pattern}}_{\mathrm{k,i,t}}$$
(2)

Where:

  1. 1.

    medicationi,t is a binary variable that is 1 for individual i on day t if a laxative is reported taken, else 0

  2. 2.

    symptomj,i,t is an ordinal symptom severity indicator for individual i on day t with levels ranging from 0 to 4 for each of the j symptom types (e.g., gas, difficulty passing, etc.), with 0 indicating no symptoms and 4 indicating most severe symptoms

  3. 3.

    BMpatternk,i,t is a dummy variable indicating if individual i reported being constipated, irregular, or “none of the above” as opposed to regular on day t, with regular BM pattern being the reference state

The HTML and PDF versions of the Article have been corrected.