Hello UQLab community,

I want to use PCE surrogate for the sensitivity analysis … But I’m having a problem while computing PCE coefficeints for my Y1 (or Y2) outputs.

Is there any way to help me figure out why this is not working (see report below)?

Thanks in advance,

— Calculating the PCE coefficients by regression. —

NaN’s cannot be converted to logicals.

Error in uq_PCE_loo_error (line 52)

if ~varY % if the data has 0 variance, set the errors to 0

Error in uq_PCE_OLS_regression (line 49)

[LOO, normEmpErr, optErrorParams] = uq_PCE_loo_error(Psi, M, Y, results.coefficients,

modified_loo);

Error in uq_lar (line 215)

ols_results = uq_PCE_OLS_regression(ones(size(Y,1),1), Y, olsoptions);

Error in uq_PCE_lars (line 64)

lar_results = uq_lar(Psi, Y, lar_options);

Error in uq_PCE_calculate_coefficients_regression (line 197)

lars_results = uq_PCE_lars(univ_p_val, current_model);

Error in uq_PCE_calculate_coefficients (line 47)

uq_PCE_calculate_coefficients_regression(current_model);

Error in uq_calculateMetamodel (line 18)

success = uq_PCE_calculate_coefficients(current_model);

Error in uq_initialize_uq_metamodel (line 358)

success = uq_calculateMetamodel(current_model);