simSVD {rsvddpd} | R Documentation |
Simulate SVD and measure performances of various algorithms
Description
simSVD
simulates various models for the errors in the data matrix, and summarize
performance of a singular value decomposition algorithm under presence or absence of
outlying data introduced through various outlying schemes, using Monte Carlo approach.
Usage
simSVD(
trueSVD,
svdfun,
B = 100,
seed = NULL,
dist = "normal",
tau = 0.95,
outlier = FALSE,
out_method = "element",
out_value = 10,
out_prop = 0.1,
return_details = FALSE,
...
)
Arguments
trueSVD |
|
svdfun |
|
B |
|
seed |
|
dist |
|
tau |
|
outlier |
|
out_method |
|
out_value |
|
out_prop |
a |
return_details |
|
... |
extra arguments to be passed to |
Value
Based on whether return_details
is TRUE
or FALSE
, returns a list with two or one components.
Simulations :
Lambda - A
matrix
containing obtained singular values from all Monte Carlo Simulations.Left - A
matrix
containing the dissimilarities between left singular vectors of true SVD and obtained SVD.Right - A
matrix
containing the dissimilarities between right singular vectors of true SVD and obtained SVD.
Summary :
Bias - A
numeric vector
showing biases of the singular vectors obtained bysvdfun
algorithm.MSE - A
numeric vector
showing MSE of the singular vectors obtained bysvdfun
algorithm.Variance - A
numeric vector
showing variances of the singular vectors obtained bysvdfun
algorithm.Left - A
numeric vector
showing average dissimilarities between true and estimated left singular vectors.Right - A
numeric vector
showing average dissimilarities between true and estimated right singular vectors.
If return_details
is FALSE
, only Summary component of the larger list is returned.