You can have Reference Class containing some calculations by giving formula and data.
formulaFormula
dataA data frame
print()This function prints regression coefficients by using given formula and data in initialization.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.