Method: Statsample::Factor::ParallelAnalysis.with_random_data
- Defined in:
- lib/statsample/factor/parallelanalysis.rb
.with_random_data(cases, vars, opts = Hash.new) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/statsample/factor/parallelanalysis.rb', line 24 def self.with_random_data(cases,vars,opts=Hash.new) ds= Daru::DataFrame.new({}, order: vars.times.map {|i| "v#{i+1}".to_sym}, index: cases ) opts=opts.merge({:bootstrap_method=> :random, :no_data=>true}) new(ds, opts) end |