Learn R Programming

SAR (version 1.0.3)

item_predict: Get item-to-item recommendations from a SAR model

Description

Get item-to-item recommendations from a SAR model

Usage

item_predict(object, items, k = 10)

Arguments

object

A SAR model object.

items

A vector of item IDs.

k

The number of recommendations to obtain.

Value

A data frame containing one row per item ID supplied.

Examples

Run this code
# NOT RUN {
data(ms_usage)
mod <- sar(ms_usage)

# item recomendations for a set of item IDs
items <- unique(ms_usage$item)[1:5]
item_predict(mod, items=items)

# }

Run the code above in your browser using DataLab