Announcement

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

  • Test post

    Testing, testing, 1 2 3.

  • #2
    Test code
    Code:
    mata :
    
    void function testMata()
    {
    
    
    
    
    
    }
    
    
    
    end

    Comment


    • #3
      another test of code

      cool feature

      Code:
       
      mata:
      
      real colvector testMata(real colvector y,
                                          real matrix X)
        {[INDENT=2]
      real colvector b
      
      b = qrsolve(quadcross(X, 1, X, 1),quadcross(X, 1, y, 0)
      
      return(b)
       [/INDENT]  }

      Comment


      • #4
        Here is some code.

        Code:
        use melanoma, clear
        keep if stage==1 /* restrict to localised */
        
        stset surv_mm, fail(status==1 2) id(id) scale(12)
        
        strs using popmort, br(0(0.5)10) mergeby(_year sex _age) ///
            by(sex agegrp) notables save(replace)
        
        use grouped if sex==1 & agegrp==3, clear    
            
        twoway (line cp end, lw(medthick)) ///
        (line cp_e2 end, lw(medthick)), ///
        yti("Survival") ///
        ylabel(0(0.2)1, format(%3.1f)) ///
        xti("Years from diagnosis") xla(0(1)10) ///
        legend(order(1 "Observed" 2 "Expected") ring(0) pos(7) col(1))
        
        graph export "graph.png", replace
        Can we add an image?

        Attached Files

        Comment

        Working...
        X