This function is an extension of the sarm() model. It allows the user to estimate the sarm() model but with model variance given as a function of a grouping variable. This approach may be adopted if the user suspects the data violate the assumptions of constant variance and independence of observations within groups. When estimating this model, it is assumed that the last variable included on the right-hand side of the equation object is the grouping variable.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.