Description Usage Arguments Value Author(s) References See Also Examples
Sample data (filling out existing data or sampling a completely new dataset). If a dataset is provided, and it contains 'cells' that are not covered by the naive GLoMo, a warning is issued and marginal probabilities and means are used.
1 2 |
object |
|
nobs |
number of observations to sample. Can be a single integer or a vector of the
same length as |
newdata |
|
forrows |
indices of the rows of |
reusabledata |
See |
returnRepeats |
if |
returnSelectedGlomoRows |
if |
verbosity |
The higher this value, the more levels of progress and debug information is displayed (note: in R for Windows, turn off buffered output) |
... |
Ignored for now |
If both returnRepeats
and returnSelectedGlomoRows
are FALSE
,
a data.frame
or numdfr
(dependent
on the dfr
that was used in the original call to GLoMo
that holds the sampled data.
Otherwise, a list with items:
predicted |
The sampled dataset described above |
glomorowsused |
(only if |
numRepPerRow |
(only if |
Nick Sabbe (nick.sabbe@ugent.be)
"Statistical Analysis with Missing Values"
GLoMo-package
, NumDfr
, predict
, GLoMo
1 2 3 4 5 6 7 | iris.md<-randomNA(iris, 0.1)
iris.md.nd<-numdfr(iris.md)
iris.nd.rnd<-rCatsAndCntInDfr(iris.md.nd, orgriName=NULL, verbosity=1)
iris.weights<-iris.nd.rnd$weights
iris.nd.rnd<-iris.nd.rnd[,1:5]
iris.glomo<-GLoMo(iris.nd.rnd, weights=iris.weights, verbosity=1)
iris.pred.cond<-predict(iris.glomo, nobs=100, verbosity=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.