Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • factortest command - bartlett's test of sphericity

    Hi I am trying to use this command in Stata14
    I am getting an error message varlist not allowed. This applies even when I use preloaded data. I tried:

    sysuse auto

    factortest price mpg rep78 headroom turn trunk

    Why the error message?

  • #2
    Welcome to Statalist, Rebecca.

    It works for me. I installed the user-written factortest command and then ran your example.
    Code:
    . sysuse auto
    (1978 Automobile Data)
    
    . factortest price mpg rep78 headroom turn trunk
        
    Determinant of the correlation matrix
    Det                =     0.079
     
     
    Bartlett test of sphericity
        
    Chi-square         =           165.062
    Degrees of freedom =                15
    p-value            =             0.000
    H0: variables are not intercorrelated
     
     
    Kaiser-Meyer-Olkin Measure of Sampling Adequacy
    KMO               =     0.738
     
    
    . about
    
    Stata/SE 14.2 for Mac (64-bit Intel)
    Revision 19 Dec 2016
    Copyright 1985-2015 StataCorp LP
    I do not see what could have caused the error message you received. Did you execute the commands exactly as I show above, or were they part of a larger do-file, in which case the message might have originated from a different command.

    Comment

    Working...
    X