Talk:Welch's t-test: Difference between revisions
m
→Stata implementation
Line 852:
=== Stata implementation ===
For the record, here is a quick Stata translation of this betain implementation.
The original C code can be simplified in several places using shortcuts (it could be simplified even more in C). Also, ifault is not used here: instead, the function returns a missing value if the arguments are invalid.
<lang stata>mata
Line 918 ⟶ 920:
}
end</lang>
|