default.txt 797 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. program define gr_log
  2. version 6.0
  3. local or = `2'
  4. local xunits = `3'
  5. local b1 = ln(`or')
  6. * make summary of logistic data from equation
  7. set obs `xunits'
  8. generate pgty = 1 - 1/(1 + exp(score))
  9. /**
  10. * Comment 1
  11. */
  12. reg y x
  13. * Comment 2
  14. reg y2 x //comment 3
  15. This is a `loc' $glob ${glob2}
  16. This is a `"string " "' "string`1'two${hi}" bad `"string " "' good `"string " "'
  17. //Limit to just the project ados
  18. cap adopath - SITE
  19. cap adopath - PLUS
  20. /*cap adopath - PERSONAL
  21. cap adopath - OLDPLACE*/
  22. adopath ++ "${dir_base}/code/ado/"
  23. A string `"Wow"'. `""one" "two""'
  24. A `local' em`b'ed
  25. a global ${dir_base} $dir_base em${b}ed
  26. forval i=1/4{
  27. if `i'==2{
  28. cap reg y x1, robust
  29. local x = ln(4)
  30. local x =ln(4)
  31. local ln = ln
  32. }
  33. }
  34. * add mlibs in the new adopath to the index
  35. mata: mata mlib index