Getting the below error while running the second code for Univariate data.

ERROR: (execution) Matrix has not been set to