predict_response: Returns the predicted response of the clusterwise lmm to the...

Description Usage Arguments Value

View source: R/predict_response.R

Description

Returns the predicted response of the clusterwise lmm to the data given a clustering

Usage

1
predict_response(data, clusters, models)

Arguments

data

data frame containing the variables in which the clmm model has been trained.

clusters

vector that indicates the clustering. Must contain a number of clusters equal to the number of models.

models

object of class clmm that contains a list of k lmm models.

Value

vector containing the prediction.


Redha-ALLICHE/clusterwiselmm documentation built on Aug. 3, 2020, 1:10 a.m.