sampleConditional: Complete a dataset conditional on a model and the outcomes

Description Usage Arguments Value Author(s) See Also

View source: R/sampleConditional.R

Description

Complete a dataset conditional on a model and the outcomes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  sampleConditional(predictorModel, outcomeModel,
    nrOfSamplesPerMDRow, ds, out, rowsToUseForFit,
    imputeDs2FitDsProperties, reusableForSampling,
    reusableForvalidation, verbosity = 0)

  ## S3 method for class 'GLoMo'
sampleConditional(predictorModel,
    outcomeModel, nrOfSamplesPerMDRow, ds, out,
    rowsToUseForFit, imputeDs2FitDsProperties,
    reusableForSampling, reusableForvalidation,
    verbosity=0)

  acceptOrRejectFunction(outcomeModel)

  ## Default S3 method:
acceptOrRejectFunction(outcomeModel)

  ## S3 method for class 'lognet'
acceptOrRejectFunction(outcomeModel)

Arguments

predictorModel

model binding the predictors (e.g. GLoMo)

outcomeModel

outcome model (linking the outcomes to the predictors) (e.g. glmnet object)

nrOfSamplesPerMDRow

number times each row with missing data will be completed

ds

dataset to be completed

out

outcomes

rowsToUseForFit

which of the rows in ds can be used for fitting the outcome model

imputeDs2FitDsProperties

see imputeDs2FitDs

reusableForSampling

Which of the rows of dfr/out can be used for fitting the LASSO

reusableForvalidation

minimum number of iterations before convergence is possible

verbosity

The higher this value, the more levels of progress and debug information is displayed (note: in R for Windows, turn off buffered output)

Value

object of classes "sampledConditionallyGLomo" and "sampledConditionally", which is a list with items:

  1. ds: completed dataset

  2. out: outcome per row of ds (the one in this list)

  3. weights: weight per row in ds (the one in this list)

  4. orgri: row index within ds (the parameter of the function) of each row within ds (the one in this list)

  5. useForFit: boolean indicator for each row of ds (the one in this list) that is TRUE if this row is to be used for validation

  6. useOut: outcomes, but only for the rows of ds that can be used for validation

sampleConditional returns a function with the same signature and goal as validateFunction.lognet

Author(s)

Nick Sabbe nick.sabbe@ugent.be

Nick Sabbe nick.sabbe@ugent.be

See Also

EMLasso.1l

EMLasso.1l

EMLasso.1l

EMLasso.1l


EMLasso documentation built on May 2, 2019, 5:49 p.m.