R: A function to visualize the shape of the prior on the weights...
pltprior
R Documentation
A function to visualize the shape of the prior on the weights with the chosen q and s parameters.
Description
This function helps visualize the effect of the parameters q and s on the prior distribution used on the weights.
Usage
pltprior(q, s)
Arguments
q
One of the two parameters used to determine the prior on the weights.
s
The second of two parameters used to determine the prior on the weights.
Details
The prior assumed on the weights in the objective function takes on the following formulation:
[L_q(β; q, s)= frac{frac{{q^{(q-1)}} {q}} {2sΓ(frac{{1}{q}})}} exp(frac{{-1}{qs^q}} |emph{weights}|^q)
Value
A 3D plot of the value of the prior taking into consideration only two weights
Author(s)
Douaa Mugahid
References
Mazur J., et al. Reconstructing nonlinear dynamic models of gene regulation using stochastic sampling. BMC Bioinformatics 2009;10;448
See Also
pltgamma
Examples
pltprior(q=1,s=1)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(RCASPAR)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/RCASPAR/pltprior.Rd_%03d_medium.png", width=480, height=480)
> ### Name: pltprior
> ### Title: A function to visualize the shape of the prior on the weights
> ### with the chosen q and s parameters.
> ### Aliases: pltprior
> ### Keywords: Lq-Norm prior
>
> ### ** Examples
>
> pltprior(q=1,s=1)
>
>
>
>
> dev.off()
null device
1
>