select.greedy: select blocks based on greedy algorithm

View source: R/select_greedy.R

select.greedyR Documentation

select blocks based on greedy algorithm

Description

select blocks based on greedy algorithm

Usage

select.greedy(
  infos,
  FUN,
  traits.grid,
  K,
  K.start,
  K.final,
  maximize = F,
  weights.grid = NULL,
  constraint.list = NULL,
  ...
)

Arguments

infos

block information as returned from calc.block.info()

FUN

function to summarize block information

traits.grid

matrix, traits info was computed for

K

integer, number of blocks in pool

K.start

integer, number of blocks in initial questionnaires. It is assumed that these are the first K.start blocks.

K.final

integer, number of blocks in final questionnaire

Value

numeric vector of indices of selected blocks


susanne-frick/MFCblockInfo documentation built on Oct. 20, 2024, 8:26 p.m.