Step by step
Open the Code tab
On a Result Card, click Code. Under Analysis code a note reminds you to check the selected language’s notes and to update the file path before running the code on your own data.
Choose R
Click R. The code first reads the data the way KernelStats did (the same missing-value tokens, column types and excluded rows), so its numbers can match the card.
Choose MATLAB
Click MATLAB. The first line of every MATLAB export names what it needs, either base MATLAB or a toolbox such as the Statistics and Machine Learning Toolbox.
Choose SAS
Click SAS where the tab offers it.
Copy the code
Press Copy at the top right of the code box and paste it into your own editor. KernelStats has no built-in console for running it.
What every export gives you
Every analysis gives its code in Python, R and MATLAB, and in SAS where the tab shows it. The code reads the data the way KernelStats did (the same missing-value tokens, column types and excluded rows). Compare the numbers it prints with the card when you run it. The MATLAB code has not been run in MATLAB itself, so check its numbers with particular care.
What you should see
The same model in each language, with comments explaining each part.
Common problems
- The numbers do not match the card.
Check that the file path points to the same data and that the rows excluded in KernelStats are excluded in the code (the code lists them).
- R says a package is missing.
Install the package named in the error; the code uses common CRAN packages.
Last reviewed November 16, 2026.
