View source: R/Simulate_Data.R
choose_beta | R Documentation |
Compute a coefficient function for the Function Linear Regression model.
choose_beta(param)
param |
a list containing:
|
Several shapes are available.
A numerical vector which corresponds to the coefficient function
at given times points (grid
).
### smooth param <- list(p=100,grid=seq(0,1,length=100),shape="smooth") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="l") ### random_smooth param <- list(p=100,grid=seq(0,1,length=100),shape="random_smooth") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="l") ### simple param <- list(p=100,grid=seq(0,1,length=100),shape="simple") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="s") ### simple_bis param <- list(p=100,grid=seq(0,1,length=100),shape="simple_bis") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="s") ### random_simple param <- list(p=100,grid=seq(0,1,length=100),shape="random_simple") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="s") ### sinusoid param <- list(p=100,grid=seq(0,1,length=100),shape="sinusoid") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="l") ### flat_sinusoid param <- list(p=100,grid=seq(0,1,length=100),shape="flat_sinusoid") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="l") ### sharp param <- list(p=100,grid=seq(0,1,length=100),shape="sharp") beta_function <- choose_beta(param) plot(param$grid,beta_function,type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.