Coder Social home page Coder Social logo

dipterix / spfda Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.95 MB

Functional Group Bridge for Simultaneous Regression and Support Estimation (https://arxiv.org/abs/2006.10163)

License: Other

R 100.00%
function-on-scalar-regression sparse regularization-methods

spfda's Introduction

R Package "spfda" - Sparse function-on-scalar regression

CRAN-version license-MIT R-check

This package implements paper "Functional Group Bridge for Simultaneous Regression and Support Estimation"

[PDF] [Github] [CRAN] [Examples]

Demo example

Installation

You can install the released version of spfda CRAN-version from CRAN with:

install.packages("spfda")

The experimental version can be installed via

# install.packages("remotes")
remotes::install_github("dipterix/spfda")

Example

library(spfda)
dat <- spfda_simulate()
x <- dat$X
y <- dat$Y

## basic example code

fit <- spfda(y, x, lambda = 5, CI = TRUE)

## Generics

BIC(fit)
plot(fit, col = c("orange", "dodgerblue3", "darkgreen"),
     main = "Fitted with 95% CI", aty = c(0, 0.5, 1), atx = c(0,0.2,0.8,1))
matpoints(fit$time, t(dat$env$beta), type = 'l', col = 'black', lty = 2)
legend('topleft', c("Fitted", "Underlying"), lty = c(1,2), bty = 'n')
print(fit)
coefficients(fit)

Citation

Use citation('spfda') to generate citation information, or check this link.

Wang, Z, Magnotti, JF, Beauchamp, MS. Li, M, Functional Group Bridge for
  Simultaneous Regression and Support Estimation.

spfda's People

Contributors

dipterix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.