It would be easier for external users to read the code if some important steps were documented (with a comment).
Most importantly, it would be useful to write variable names with full and explicit names: For instance, in correlation_test, variable names are s2, vb, seb, that,ts, ps, qs, etc. which are quite opaque (for non-experts) and difficult to interpret, thus it's complicated to understand the internals of a function. Examples of more explicit names are pvalue, posterior, residuals, CI (credible interval), tvalue etc.
It would be easier for external users to read the code if some important steps were documented (with a comment).
Most importantly, it would be useful to write variable names with full and explicit names: For instance, in correlation_test, variable names are
s2
,vb
,seb
,that
,ts
,ps
,qs
, etc. which are quite opaque (for non-experts) and difficult to interpret, thus it's complicated to understand the internals of a function. Examples of more explicit names arepvalue
,posterior
,residuals
,CI
(credible interval),tvalue
etc.