Aah! In the case you want sub-sampling inside a group, if your data is in a DataFrame you can use the* by <http://juliastats.github.io/DataFrames.jl/stable/man/split_apply_combine/#The-Split-Apply-Combine-Strategy-1>* function, and call the sample function from it.
El sábado, 25 de junio de 2016, 21:00:56 (UTC-3), Diego Javier Zea escribió: > > Hi Jessica, > > The actual Bootstrap.jl <https://github.com/juliangehring/Bootstrap.jl> > package doesn't have that functionality (AFAIK), but maybe you can find > useful the StratifiedRandomSum > <http://mlbasejl.readthedocs.io/en/latest/crossval.html#cross-validation-schemes> > > function in MLBase.jl <https://github.com/JuliaStats/MLBase.jl>. > > Best > > > El sábado, 25 de junio de 2016, 3:08:02 (UTC-3), Jessica Koh escribió: >> >> Hello, >> >> I was trying to resample data with replacement by strata and with >> clusters. Maybe I haven't looked up enough, but the current bootstrap >> function does not handle strata and clusters. I had to code bootstrap >> resample code from scratch (which fortunately was not too difficult), but I >> thought it would be nice to have a function that resamples data with >> clusters and by strata. >> >> Is anyone aware of the existing julia library/function that does that? If >> not, where can I discuss this? >> >> Thank you! >> > -- You received this message because you are subscribed to the Google Groups "julia-stats" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
