Description Usage Arguments Value
Calculates marginal correlations between a functional covariate and a scalar response.
1 | marginal.cor(object, id = NULL, response = NULL, alpha = 0.05)
|
object |
An object of type |
id |
The vector of subject id's. These tell which responses in |
response |
The vector of responses |
alpha |
The alpha level for confidence intervals (one minus the two-sided coverage) |
Returns a list with one component for each functional covariate. Each such component contains the between-subjects correlations between the fitted smoothed latent values of the functional covariate, and the response variable. We call this a marginal correlation because it simply ignores the other functional covariates (rather than trying to adjust or control for them). Both the functional regression coefficient and the marginal correlation can be useful, although they have different substantive interpretations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.