make_new_data_predictions: Use a model to make predictions on new data

View source: R/add_predictions.R

make_new_data_predictionsR Documentation

Use a model to make predictions on new data

Description

This function takes new data, and produces predictions, error estimates, and SHAP values

Usage

make_new_data_predictions(model, name, indx, total, new_data)

Arguments

model

The model object.

name

The name of the perturbation.

indx

Integer index used, for progress report.

total

Integer of the total number of perturbations passed to this function, for progress report.

new_data

A dataframe of new cases with predictors as columns. Sample names are row names.

Examples

make_new_data_predictions(my_model,"ko_ctnnb1",1,1,my_new_data)

Mushriq/mixmap documentation built on Jan. 28, 2024, 7:22 p.m.