Jump to content

Assignment #3

Fragment of a discussion from Course talk:STAT 550

I think it can be discarded. That's what I'm doing anyway. What approach are you taking to creating the extra columns? I'm struggling to get this cumulative hour tally mentioned in class to work.

DanielDinsdale (talk)21:31, 17 March 2014

I don't think that you actually need to add any columns, one could just change the 0d coding into a 0 for all intensive purposes.

I think the easiest way to do the tally is to convert the date time into posix format and then prototype the cum function on a subset of the data (for one id). Basically you just want to create a vector of first differences of the datetime and then multiply these by the dosage...Let me know if that makes sense.

SeanJewell (talk)05:06, 18 March 2014