create_mds_samples: Create dataframe of coordinates for multidmensional scaling...

View source: R/create_mds_samples.R

create_mds_samplesR Documentation

Create dataframe of coordinates for multidmensional scaling of posterior samples

Description

Create dataframe of coordinates for multidmensional scaling of posterior samples

Usage

create_mds_samples(
  mod_list,
  n_samples = 200L,
  k = 3,
  vadis_line = NULL,
  path = NULL
)

Arguments

mod_list

list of regression model objects of class brmsfit.

n_samples

integer indicating number of samples to pull

k

= the maximum dimension of the space which the data are to be represented in the MDS; must be in $1, 2, …, n-1$ (see cmdscale).

vadis_line

list containing the output of vadis_line2. If NULL (default), this will be run automatically

path

filepath to which to save the output as an .csv file. If NULL, defaults to the current working directory. Set path = FALSE if you do not wish to save to file.

Details

The function creates a dataframe containing MDS coordinates of distance matrices derived from posterior samples of coefficient estimates. Currently only works with brmsfit objects.

Value

a dataframe

Author(s)

Jason Grafmiller

Examples

## Not run: 
Coming soon...

## End(Not run)

jasongraf1/VADIS documentation built on July 19, 2023, 10:26 p.m.