TSrowMaxST: Two-Stage Maximum Row Test method for the loading vectors.

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/hello.R

Description

Conduct the simultaneous inference for a set of loading vectors as for the NUll hypothesises H01, where H01 assume the set of loading vectors are all zeroes.

Usage

1
  TSrowMaxST(X, G1,  alpha=0.05, seed=1, sub.frac=0.5)

Arguments

X

a n-by-p matrix, the observed data

G1

a positive vector with values between 1 and p, the set of H01.

alpha

a positive number, the significant level.

seed

a non-negative integer, the random seed.

sub.frac

a positive number between 0 and 1, the proportion of the sample used in stage I.

Value

return a matrix with class "Max-test", row names 'chiq_test' , and column names 'CriticalValue', 'TestStatistic', 'reject_status', and 'p-value', including all the information about testing.

Note

nothing

Author(s)

Liu Wei

References

Wei Liu, Huazhen Lin, Jin Liu (2020). Estimation and inference on high-dimensional sparse factor models.

See Also

factor, Factorm,simultestentryX

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  ### Example
  dat <- gendata(n = 300, p = 500)
  res <- Factorm(dat$X)
  X <- dat$X
  # ex1: H01 is false
  G1 <- 1:10; # all are nonzero loading vectors
  TSrowMaxST(X, G1=G1, alpha=0.05, sub.frac=0.5)
  # ex2: H01 is true
  G1 <- 481:500 # all are zero loading vectors
  TSrowMaxST(X, G1=G1, alpha=0.05, sub.frac=0.5)

feiyoung/SpagFainfer documentation built on April 4, 2020, 5:20 p.m.