Description Usage Arguments Details Value
Function for calculating R^2 either within or between groups.
1 |
pred |
a vector containing numeric predictions (i.e. estimated values). |
obs |
a vector containing numeric observations (i.e. truth values). |
group |
An optional group by which to calculate R^2. If left empty. R^2 is calculated between groups. |
By specifying a some group in the group
argument of this function, R^2 is calculated within groups.
Note that this is only meaningful for groups with more than one observation and where variance exists.
calculated R^2 as a single numeric value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.