Usage
PMD.cv(x, type=c("standard", "ordered"), sumabss=seq(0.1,0.7,len=10),
sumabsus=NULL, lambda=NULL, nfolds=5, niter=5, v=NULL, chrom=NULL, nuc=NULL,
trace=TRUE, center=TRUE, upos=FALSE, uneg=FALSE, vpos=FALSE, vneg=FALSE)
Arguments
x
Data matrix of dimension $n x p$, which can contain NA
for missing values.
type
"standard" or "ordered": Do we want v to simply be sparse,
or should it also be smooth? If the columns of x are ordered
(e.g. CGH spots along a chromosome) then choose "ordered". Default
is "standard". If "standard", then the PMD function will
sumabss
Used only if type is "standard". A vector of sumabs
values to be used. Sumabs is a measure of sparsity for u and v vectors, between 0 and
1. When sumabss is specified, and sumabsus and sumabsvs are NULL, then
sumabsus is set to $sqrt(n)*sumabs
sumabsus
Used only for type "ordered". A vector of sumabsu
values to be used. Sumabsu measures sparseness of u - it is the sum
of absolute values of elements of u. Must be between 1 and sqrt(n).
lambda
Used only if type is "ordered". This is the tuning
parameter for the fused lasso penalty on v, which takes the form
$lambda ||v||_1 + lambda |v_j - v_(j-1)|$. $lambda$ must be
non-negative. If NULL, then it is chosen adaptively from the data.
nfolds
How many cross-validation folds should be performed?
Default is 5.
niter
How many iterations should be performed. For speed,
only 5 are performed by default.
v
The first right singular vector(s) of the data. (If missing
data is present, then the missing values are imputed before the
singular vectors are calculated.) v is used as the initial value for
the iterative PMD algorithm. If x is large, then t
chrom
If type is "ordered", then this gives the option to
specify that some columns of x (corresponding to CGH spots) are on
different chromosomes. Then v will be sparse, and smooth *within*
each chromosome but not *between* chromosomes. Length of c
nuc
If type is "ordered", can specify the nucleotide position
of each CGH spot (column of x), to be used in plotting. If NULL,
then it is assumed that CGH spots are equally spaced.
trace
Print out progress as iterations are performed? Default
is TRUE.
center
Subtract out mean of x? Default is TRUE
upos
Constrain the elements of u to be positive? TRUE or
FALSE.
uneg
Constrain the elements of u to be negative? TRUE or
FALSE.
vpos
Constrain the elements of v to be positive? TRUE or
FALSE. Cannot be used if type is "ordered".
vneg
Constrain the elements of v to be negative? TRUE or
FALSE. Cannot be used if type is "ordered."