predict.edp_population_model: Predict values from a population model

Description Usage Arguments Value Examples

View source: R/popmod.R

Description

Predict values for the columns in target for rowids given the other values in that row.

Usage

1
2
3
4
## S3 method for class 'edp_population_model'
predict(object, ...,
        target = NULL, rowids = NULL,
        infer_present = FALSE, seed = NULL)

Arguments

object

an EDP population model, from popmod(...)

...

ignored, accepted for compatibility with predict

target

a character vector of column names, defaults to names(pm) minus names(where)

rowids

a integer vector of rowids, defaults to all

infer_present

If TRUE, act as though each column in targets is missing across all rows and so infer a value for every row. Otherwise only infer values which were missing in the original data.

seed

if set, an integer to pass to EDP as a random seed for this call

Value

a data frame with the columns specified in target.

Examples

1
2
3
4
  ## Not run: 
    predict(pm, target = c("INCOME"), rowids = c(3, 7))
  
## End(Not run)

edpclient documentation built on May 2, 2019, 2:01 p.m.