• Re: What is the difference between covariates or factors, in a ordinal

    From Lijun Zhao@21:1/5 to Rich Ulrich on Tue Sep 12 04:11:04 2023
    On Tuesday, February 28, 2017 at 1:43:40 PM UTC+10:30, Rich Ulrich wrote:
    On Mon, 27 Feb 2017 13:56:11 -0800 (PST), Bruce Weaver
    <[email protected]> wrote:

    On Monday, February 27, 2017 at 9:07:45 AM UTC-5, Sushma Dhital wrote:
    I read that independent categorical variable should be treated as factors, is it true?

    Yes, Factors are categorical explanatory variables (e.g., sex, marital status), and Covariates are continuous (or at least quantitative) explanatory variables (e.g., age, body weight).
    Of course -- you can code up the dummy variables for
    the factors and do the whole analysis of ANOVA with a
    regression program. That is what all modern stat-packages
    do, internally.

    If you want to think of one factor as being in the model as
    a logical "covariate" (with 1 or more d.f.), that is fine.


    --
    Rich Ulrich
    hi Rich,
    but, ideally, the sex should be entered in the factor section. right? The only thing is not to make contrasts. correct?


    Lijun

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich Ulrich@21:1/5 to [email protected] on Mon Sep 18 13:11:59 2023
    On Tue, 12 Sep 2023 04:11:04 -0700 (PDT), Lijun Zhao
    <[email protected]> wrote:

    On Tuesday, February 28, 2017 at 1:43:40?PM UTC+10:30, Rich Ulrich wrote:
    On Mon, 27 Feb 2017 13:56:11 -0800 (PST), Bruce Weaver
    <[email protected]> wrote:

    On Monday, February 27, 2017 at 9:07:45 AM UTC-5, Sushma Dhital wrote:
    I read that independent categorical variable should be treated as factors, is it true?

    Yes, Factors are categorical explanatory variables (e.g., sex, marital status), and Covariates are continuous (or at least quantitative) explanatory variables (e.g., age, body weight).
    Of course -- you can code up the dummy variables for
    the factors and do the whole analysis of ANOVA with a
    regression program. That is what all modern stat-packages
    do, internally.

    If you want to think of one factor as being in the model as
    a logical "covariate" (with 1 or more d.f.), that is fine.


    --
    Rich Ulrich
    hi Rich,
    but, ideally, the sex should be entered in the factor section. right?

    I don't know why you say 'ideally' -- If you have NO interest in
    interactions or means, your output is easier to read if it is a
    covariate.

    The only thing is not to make contrasts. correct?

    ? If you don't want contrasts ... I don't follow what you ask.

    --
    Rich Ulrich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)