item_predict {SAR}R Documentation

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


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)


[Package SAR version 1.0.3 Index]