Learn R Programming

sams (version 0.4.3)

getThetas: Get theta Parameters from a Numeric Vector of Cluster Labels and Unique phi Values

Description

Get theta Parameters from a Numeric Vector of Cluster Labels and Unique phi Values

Usage

getThetas(partition, phi)

Arguments

partition

A numeric vector representing a partition of the integers \(1\), ..., \(n\) using cluster labels

phi

A list of unique model parameters whose length must equal the number of unique cluster labels in partition

Value

A numeric vector of model parameters \(theta_1\), ..., \(theta_n\).