Last data update: 2014.03.03
|
R: Creates a trace plot for the LD LASSO
trace.plot | R Documentation |
Creates a trace plot for the LD LASSO
Description
This function creates a trace plot as a function of s2, the
LD LASSO constraint
Usage
trace.plot(beta0.mat, s2.vec, type = "l", indx = NA, s2star = NA, abs = TRUE)
Arguments
beta0.mat |
A matrix where rows are ld lasso estimates. This matrix has number of rows equal
to length(s2.vec) and number of columns equal to the number of SNPs
|
s2.vec |
The vector of s2 values used to generate the rows of beta0.mat
|
type |
Type of plot, "l" for lines, "p" for points
|
indx |
If index is NA then indx, is a vector of SNP indices to be
plotted in red.
|
s2star |
Value of s2star from cp object. If s2star is not NA, a vertical line is plotted at this value.
|
abs |
A logical variable indicating whether to plot absolute value of beta instead of beta
|
Details
In this trace plot each line represents a SNP estimate and we see the
behavior of the solution as the LD LASSO constraint is varied.
Value
Creates a trace plot.
Author(s)
Samuel G. Younkin
Results
|