BTRT_estimate_B: Produce a final tensor coefficient estimate

View source: R/903_post_hoc_fns.R

BTRT_estimate_BR Documentation

Produce a final tensor coefficient estimate

Description

This uses the sequential 2-means post-hoc variable-selection technique from Li and Pati (2018) to produce a point estimate of the tensor coefficient from all of posterior samples of the tensor coefficient.

Usage

BTRT_estimate_B(all_B)

Arguments

all_B

An array of tensor coefficient posterior draws in which the final dimension corresponds to the posterior sample index.

Value

An array as a final estimate of the tensor coefficient

Examples

## Not run: 
input <- TR_simulated_data()
results <- BTRTucker(input)
all_B <- BTRT_all_B(results)
estimate_B <- BTRT_estimate_B(all_B)

## End(Not run)

danieladamspencer/bayestensorreg documentation built on July 23, 2024, 10:14 a.m.