psych_kxi_pipeline {opticskxi}R Documentation

Example pipeline for mental health natural language processing

Description

Removes too large clusters and models with less than a minimum number of clusters.

Usage

psych_kxi_pipeline(
  m_data,
  df_params = expand.grid(n_xi = 8:15, pts = c(15, 20, 25, 30), dist = "cosine", dim_red
    = "ICA", n_dimred_comp = c(10, 15, 20, 25)),
  max_size_ratio = 0.15,
  n_min_clusters = 5,
  n_cores = 1
)

Arguments

m_data

Data matrix

df_params

Parameter grid for the OPTICS k-Xi function call and optional dimension reduction. Required columns: n_xi, pts, dist. Optonal columns: dim_red, n_dim_red.

max_size_ratio

Maximum size ratio of clusters

n_min_clusters

Minimum number of clusters

n_cores

Number of cores

Value

Input parameter data frame with with results binded in columns optics, clusters and metrics.


[Package opticskxi version 1.1.0 Index]