Announcement

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

  • logout not working with factors

    When I run the following code. The logout command is not working "factor variables not allowed". Is there any solution for these kind of analysis i.e. bys, svy etc. How I can send multiple commands results in one excel file using logout?
    --------------------------
    sysuse census
    regress death medage i.region [aw=pop]
    logout, save(mylogout) excel replace: regress death medage i.region [aw=pop]
    ------------------------

  • #2
    Welcome to the Stata Forum / Statalist

    First, let's underline the SSC - logout - is a user-written program.

    I kindly recommend to avoid statements such as " not working". Instead, please prefer to show command and output. For this, you may use the CODE delimiters or install the SSC dataex.

    That said, according to the help files, it seems the command [aweight=var] is used before the command logout. Moreover, there is an example with linear regression, with rep78, without the need to use factor notation.

    Since I don't have experience with - logout -, this is the furthest I can go.

    Hopefully this helps. If not, hopefully you get better advices.

    Best regards,

    Marcos

    Comment

    Working...
    X