Announcement

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

  • rdplot error message with continuous dependent variable

    Hello everyone,

    I am using a rdplot command. When I put binary dependent variable, it perfectly works. However, when I put continuous dependent variable, an error message like this pops up:

    cross(): 3200 conformability error
    <istmt>: - function returned error

    I don't know why this problem happens and I don't know I can solve this problem. Is rdplot command not allowed for continuous dependent variable?

    Thank you so much!!

  • #2
    rdplot works fine with a continuous dependent variable. For instance:

    Code:
    . sysuse auto, clear
    (1978 automobile data)
    
    . rdplot price mpg, c(20)
    
    RD Plot with evenly spaced mimicking variance number of bins using spacings estimators.
    
            Cutoff c = 20 | Left of c  Right of c        Number of obs  =         74
    ----------------------+----------------------        Kernel         =    Uniform
            Number of obs |        35          39
       Eff. Number of obs |        35          39
      Order poly. fit (p) |         4           4
         BW poly. fit (h) |     8.000      21.000
     Number of bins scale |     1.000       1.000
    
    Outcome: price. Running variable: mpg.
    ---------------------------------------------
                          | Left of c  Right of c
    ----------------------+----------------------
            Bins selected |         6           5
       Average bin length |     1.333       4.200
        Median bin length |     1.333       4.200
    ----------------------+----------------------
        IMSE-optimal bins |         5           4
      Mimicking Var. bins |         6           5
    ----------------------+----------------------
    Rel. to IMSE-optimal: |
            Implied scale |     1.200       1.250
        WIMSE var. weight |     0.367       0.339
        WIMSE bias weight |     0.633       0.661
    ---------------------------------------------
    Please provide the exact command you are using (enclosed within CODE delimiters) and a sample of your data (using the dataex command), for others to be able to help you better.
    Last edited by Hemanshu Kumar; 22 Jan 2023, 18:14.

    Comment

    Working...
    X