Description Usage Arguments Value Author(s) See Also
View source: R/sampleConditional.R
Complete a dataset conditional on a model and the outcomes
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)
|
predictorModel |
model binding the predictors (e.g.
|
outcomeModel |
outcome model (linking the outcomes
to the predictors) (e.g. |
nrOfSamplesPerMDRow |
number times each row with missing data will be completed |
ds |
dataset to be completed |
out |
outcomes |
rowsToUseForFit |
which of the rows in |
imputeDs2FitDsProperties |
see
|
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) |
object of classes "sampledConditionallyGLomo" and "sampledConditionally", which is a list with items:
ds
: completed dataset
out
: outcome per row of ds
(the one in this
list)
weights
: weight per row in ds
(the one in this list)
orgri
: row index
within ds
(the parameter of the function) of each
row within ds
(the one in this list)
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
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
Nick Sabbe nick.sabbe@ugent.be
Nick Sabbe nick.sabbe@ugent.be
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.