« first day (774 days earlier)      last day (2401 days later) » 

1:18 AM
@Dualinity - to sample without replacement, you could use runif() to create a random index for each of your samples, and then use order() to select the top n records.
 
 
9 hours later…
10:19 AM
@Chase though this is with replacement? the runif could have the same cases?
 
It's been so easy to shoot down arguments that R is slow. Yes, R is slow compared to raw C/Fortran code, but that's just the overhead you get for using high level language that takes care of the details for you.
 
 
2 hours later…
12:09 PM
What would you consider better practice in a graph:
a) predicted values + error bars indicating 95% CI, or
b) predicted values + error bars + actual values on which model is based?
 
 
3 hours later…
2:43 PM
@RomanLuštrik Depends what the data looks like and how cluttered it gets
Maybe instead of R.SE we should have a statisticalprogramming.SE site
 
 
2 hours later…
4:16 PM
@Dualinity For a small sample it would be rare and it would still be without replacement since you would be sorting based on that vector and then grabbing the top N values. There might be an issue with ties in the runif vector giving preference to values earlier in the vector you're trying to sample from (so that the sampling probability doesn't end up being perfectly uniform)
Actually runif seems to give duplicated values more often than I would like
x <- runif(1000000); sort(x[x %in% x[duplicated(x)]])
x <- rnorm(1000000); sort(x[x %in% x[duplicated(x)]])
The rnorm version doesn't seem to produce as many duplicates...
 
 
7 hours later…
11:09 PM
@AriB.Friedman Not cluttered at all. One of my co-authors just thought we could do fitted lines and error bars. But I think it is more informative to include actual values, too.
 

« first day (774 days earlier)      last day (2401 days later) »