Learn R Programming

PGICA (version 1.0)

StVal: Computing Starting Values for PGICA

Description

The main function uses a iterative algorithm. This function calculates the starting values for the algorithm.

Usage

StVal(fileDir, m = 20, N.s = 150, V = 67749)

Arguments

fileDir
fileDir is a file directory containing the original .rda files.
m
m is the number of independent components you want.
N.s
N.s is the number of subjects.
V
V is the number of observed signals. In the fMRI case, it is the number of voxels.

Value

  • This function has no returned values, instead it will write the output into .rda files. The W0.rda file contains starting values for W matrix and the appi.rda files are the starting values for S.

Details

We used the PVD algorithm by C.M.Crainiceanu et.al to compute starting values for our algorithm.

References

Ciprian M.Crainiceanu, Brian S.Caffo, Sheng Luo, Vadim Zipunikov Population Value Decomposition, A Framework for the Analysis of Image Populations http://biostats.bepress.com/jhubiostat/paper220/

Examples

Run this code
dir.create('./data')
data(PC,package="PGICA")
save(PC,file="./data/sample.rda")
StVal("./data/",m=20,N.s=1,V=30000)
# You will find files W0.rda and app1.rda under your current working directory}
<keyword>Starting Value</keyword>

Run the code above in your browser using DataLab