Announcement

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

  • -cluster2- varlist not allowed r(101)

    Dear all,

    I have ssc installed cluster2, but cannot run the code, it shows "varlist not allowed"

    ssc install cluster2
    use C:\Users\hkpu\Desktop\RA\RA\t3.dta, clear

    xi: cluster2 st_syn100 ssyn_oc ssyn_fcd , fcluster(groupvc) tcluster(comid)
    outreg2 using "t3_top100.txt", bdec(3) sdec(3) replace

    Can anyone help me?
    Thank you!

  • #2
    The syntax on your cluster2 command is not the syntax described by the output of
    Code:
    help cluster2
    I think you have the cluster2 command confused with some other command.

    Comment


    • #3
      Thank you William, but I also run the example online, it still do not work. Can you help?
      code:
      sysuse auto, clear
      cluster2 trunk weight length , fcluster(rep78) tcluster(foreign)

      result still shows: varlist not allowed

      Comment


      • #4
        Deleted.
        Ho-Chuan (River) Huang
        Stata 19.0, MP(4)

        Comment


        • #5
          The cluster2 installed by
          Code:
          ssc install cluster2
          is not the cluster2 described at https://www.kellogg.northwestern.edu...rogramming.htm. To install that cluster2, click on the link to download it, and then copy it into the directory given by the output of
          Code:
          display c(sysdir_personal)

          Comment


          • #6
            Thank you so much William and River! I run it successfully now using Kellogg’s link.

            Comment

            Working...
            X