Skip to main content
. 2023 Apr 21;15(4):1301. doi: 10.3390/pharmaceutics15041301
Algorithm 1: Pseudo-code to determine sample’s steady-state region
For each sample n:
  • Sort the drug released value based on time (t) in ascending order.

  • Assign the first two initial data points, starting from time zero (t = 0), into set A which corresponds to region A.

  • Assign the remaining data points to set B which corresponds to region B.

  • While the p-value of region B > significance level (0.05):
    • Remove the first data point from set B and assign to set A.
    • Create a linear regression model using the data in set A (model A).
    • Create a linear regression model using the data in set B (model B).
    • If the p-value of model B is above the significance level (0.05), move to the next iteration.
    • If the p-value of model B is below the significance level (0.05), terminate the while loop.
    • If all data points have been assigned to set A, terminate the while loop because there is no more data in region B.
  • Move to the next sample.

End