« first day (1743 days earlier)      last day (1432 days later) » 

7:09 AM
Is this in your opinion "looking for a tool"? stackoverflow.com/questions/31666270/…
@GavinSimpson I think writing the boring stuff makes you think about your data structures and what the result should look like. Once you 'internalize' that, it's pretty simple to switch to *apply and kin.
 
 
4 hours later…
 
9 hours later…
8:26 PM
One more delete vote, please: stackoverflow.com/q/31657544/602276
 
@BenBolker you say BondedDust's answer is correct but the first sentence seems wrong to me "You would **need** to make two different vectors of random numbers of the same length as the x-vector." (emphasis mine, hm, seems emphasis doesn't work here)

even in a more general case, you can just draw one vector with `runif` and transform it to whatever variable you need with an inverse cdf, right?
 
8:50 PM
@Frank I agree he's wrong on the minor point of fact, but he's correct in the broad (pedagogical) sense. Transforming via an inverse CDF is always possible, but in general much less efficient than special-case algorithms implemented in the r...() functions (with the exception of cases like exponential deviates where the inverse CDF calculation is easy/efficient)
 
9:08 PM
@BenBolker ok, fair enough, thanks
 

« first day (1743 days earlier)      last day (1432 days later) »