pred_CNBFA1: Predict from CNBFA1 model

Description Usage Arguments Value See Also

Description

This function predicts based on the estimation of the CNBFA1 model train_CNBFA1.

Usage

1
pred_CNBFA1(tr_fa, gp_test, test, L_intg = F, L_trnc = F, scale_dat = T)

Arguments

tr_fa

An object resulting from train_CNBFA1.

gp_test

vector. Groups for each observation.

test

data frame. Test data set for evaluation.

logl

logical. Return log-likelihood? Defaults to TRUE.

Value

A list.

predictions

A numeric vector of predictions for all observations in the test set.

likelihoods

A numeric vector of (log-)likelihoods for all observations in the test set.

See Also

train_CNBFA1


gregorp90/RStan-package-test documentation built on May 26, 2019, 1:32 a.m.