show.affinity.matrix {affinitymatrix}R Documentation

Print affinity matrix

Description

This function prints the estimated 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.affinity.matrix(
  res,
  labels_x = paste0("Trait ", 1:Kx),
  labels_y = paste0("Trait ", 1:Ky),
  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_x

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

labels_y

A vector of strings indicating the names of women's 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 the affinity matrix Aopt.


[Package affinitymatrix version 0.1.0 Index]