Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creat I_diff() layer for fs and by-variable smooths #31

Open
mfasiolo opened this issue Oct 11, 2017 · 1 comment
Open

Creat I_diff() layer for fs and by-variable smooths #31

mfasiolo opened this issue Oct 11, 2017 · 1 comment

Comments

@mfasiolo
Copy link
Owner

mfasiolo commented Oct 11, 2017

This might be a quite useful layer, see

http://www.fromthebottomoftheheap.net/2017/10/10/difference-splines-i/

To calculate the standard error for the differences in smooth we need:

cov(X1b1, X2b2) = X1 %*% Sig11 %*% t(X1) + X2 %*% Sig22 %*% t(X2) - X1 %*% Sig12 %*% t(X2) - X2 %*% Sig12 %*% t(X1)

where Sig11, Sig22 and Sig12 = Sig21 are blocks of cov(b1, b2).

@mfasiolo
Copy link
Owner Author

Partially done here 2336af0, but by creating a new plotDiff generic for "by" smooths. For 'fs' smooths it might actually make sense creating a layer instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant