W_from_AD: Estimation of W from A and X

Description Usage Arguments Value Author(s) Examples

Description

This function estimates the topic-document matrix W from the word-topic matrix A and the word-document X through quadratic programming.

Usage

1
W_from_AD(A, X)

Arguments

A

The p-by-K word-topic matrix.

X

The p-by-n word-document matrix.

Value

The estimated K-by-n topic-document matrix W_hat.

Author(s)

Minzhe Wang

Examples

1
2
3
4
data("AP")
K <- 3
tscore_obj <- topic_score(K, AP)
W_hat <- W_from_AD(tscore_obj$A_hat, AP)

TopicScore documentation built on June 6, 2019, 5:06 p.m.