decompose_theta: Decompose 'theta' into the

Description Usage Arguments Details Value Author(s)

View source: R/utils.R

Description

Decompose estimated theta vector into its beta and Z components.

Usage

1
decompose_theta(theta, beta_idx, d)

Arguments

theta

Vector to decompose.

beta_idx

Integer vector indicating the

d

Dimensions of the latent space.

Details

This function is meant as the go-to for decomposing theta (such as a single sample from the posterior or the vector of estimates from optim). The list returned includes a vector containing the coefficients on the exogenous covariates and a positions matrix, Z.

Value

List of beta, Z

Author(s)

Jason W. Morgan jason.w.morgan@gmail.com


jason-morgan/dynnet documentation built on May 18, 2019, 4:53 p.m.