show.diagonal {affinitymatrix}R Documentation

Print the diagonal of the affinity matrix

Description

This function prints the estimates of the diagonal of the affinity matrix in LaTeX style. Standard errors are printed below the elements of the affinity matrix. Estimates that are significant at the pr level are printed in boldface: this format feature can be avoided by setting pr to 0.

Usage

show.diagonal(res, labels = paste0("Trait ", 1:K), pr = 0.05)

Arguments

res

A list corresponding to the output of estimate.affinity.matrix, estimate.affinity.matrix.lowrank or estimate.affinity.matrix.unipartite.

labels

A vector of strings indicating the names of the matching variables. Defaults to "Trait k" for every k matching variable.

pr

A probability indicating the two-tailed significance level required for an estimated parameter to be printed in boldface. Defaults to 0.05 and can be set to 0 to avoid printing any estimate in boldface.

Value

The function returns a long string in LaTeX style that can be processed in the standard LaTeX tabular environment in order to display the estimates of diagonal of the affinity matrix Aopt.


[Package affinitymatrix version 0.1.0 Index]