VariableSupplier: restrict content variables
Posted: Tue Feb 25, 2025 9:34 am
Hi,
I'm trying to create a preprocessing step where only covariate (continuous) variables are normalized, however Variable supplier passes all variables not just the specified covariates. Is it possible to restrict the content to just a subset of all the variables? Thank you in advance!
This is my analysis file:
This is my ui file:
I'm trying to create a preprocessing step where only covariate (continuous) variables are normalized, however Variable supplier passes all variables not just the specified covariates. Is it possible to restrict the content to just a subset of all the variables? Thank you in advance!
This is my analysis file:
Code: Select all
- name: stdCovs
title: Standard Scaling
type: Array
items: (covs)
default: [[]]
template:
type: Variables
name: var
Code: Select all
- type: CollapseBox
collapsed: true
label: Preprocessing
style: list
stretchFactor: 1
children:
- type: VariableSupplier
persistentItems: false
stretchFactor: 1
children:
- type: TargetLayoutBox
label: Standard Scaling
children:
- type: ListBox
name: stdCovs
label: Standard Scaling
showColumnHeaders: false
stretchFactor: 1
fullRowSelect: true
columns:
- name: var
stretchFactor: 1
template:
type: VariablesListBox
isTarget: true