Skip to content

Add validation for non-numeric observed variables in prepare_data#327

Open
2426siya wants to merge 1 commit into
StructuralEquationModels:mainfrom
2426siya:fix-non-numeric-error
Open

Add validation for non-numeric observed variables in prepare_data#327
2426siya wants to merge 1 commit into
StructuralEquationModels:mainfrom
2426siya:fix-non-numeric-error

Conversation

@2426siya

Copy link
Copy Markdown

Fixes #324

This PR adds validation in prepare_data to ensure that all observed variables are numeric.

If a column contains non-numeric values, a clear ArgumentError is thrown instead of a runtime MethodError during computation (e.g., division on String).

This improves error clarity and prevents deep failures in mean_and_cov and downstream SEM computations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error messages

1 participant