Salacious title, but true story.
dmethyl1 = {
{0, 0},
{.25, 1},
{.5, 7},
{1, 26},
{1.5, 40},
{2, 45},
{2.5, 45},
{3, 44},
{3.5, 44},
{4, 43},
{4.5, 41},
{5, 39},
{6, 38},
{7, 37},
{8, 35},
{9, 33},
{10, 32},
{11, 29},
{12, 24},
{24, 13},
{48, 4},
{60, 2},
{72, 0}
}
This data set represents d-amph serum concentrations as a function of time after taking a single dose 30mg of Adderall.
cmaxd = Interpolation[dmethyl1, InterpolationOrder -> 3]
Gives the interpolation function. I need to translate this into a crude multi dose model. I need work out how to write a function that works like:
cmulti=[cmaxd(t)+cmaxd(t-12)+cmaxd(t-24)...]
I'm having a hard time figuring out how to limit the range of the shifted functions before I add them. Its been ages since I've worked with math software. I am aware of the pharmacokinetic limitations of this kind of model. The DA is using a a wildly unrealistic reference range based on a 1x daily dosage. I just need to rebut that point.
She's really cute. My girlfriend, not the DA. Any help appreciated.