backfitting: backfitting for correction K factors model

Description Usage Arguments Details Value Examples

View source: R/backfitting.R

Description

correction the factor and loading matrix estimation using backfitting algorithm

Usage

1
backfitting(Y, Lest, Fest, tautol = 100, numtau = 500)

Arguments

Y

is the data matrix (N by P)

Lest

is estimation for l to correct

Fest

is estimation for f to correct

tautol

this the stop criterion for convergence, number for iteration

numtau

number for iteration in flash rank one.

Details

greedy algorithm on the residual matrix to get a rank one matrix decomposition

Value

list of factor, loading and variance of noise matrix

Examples

1
2
3
4
N = 100
P = 200
Y = matrix(rnorm(N*P,0,1),ncol=P)
g = flash_v_K(Y,10)

NKweiwang/flash documentation built on May 7, 2019, 6:02 p.m.