Learn R Programming

edpclient (version 0.5.1)

predict.edp_population_model: Predict values from a population model

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
  
# }
# NOT RUN {
    predict(pm, target = c("INCOME"), rowids = c(3, 7))
  
# }

Run the code above in your browser using DataLab