pub fn jarque_bera_test(y_json: &str, x_vars_json: &str) -> StringExpand description
Performs the Jarque-Bera test for normality via WASM.
The Jarque-Bera test checks whether the residuals are normally distributed by examining skewness and kurtosis. A significant p-value suggests that the residuals deviate from normality.
§Arguments
y_json- JSON array of response variable valuesx_vars_json- JSON array of predictor arrays
§Returns
JSON string containing test statistic, p-value, and interpretation.
§Errors
Returns a JSON error object if parsing fails or domain check fails.