IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

SAS STAT Discussion :

Coefficient de corrélation intra classe


Sujet :

SAS STAT

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2009
    Messages : 51
    Points : 49
    Points
    49
    Par défaut Coefficient de corrélation intra classe
    Je veux mesurer la concordance de deux intruments mesurant une variable quantitative.

    Comment puis-je calculer le coefficient de corrélation intraclasse?

    Merci de vos réponses.

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    72
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2008
    Messages : 72
    Points : 75
    Points
    75
    Par défaut
    Bonjour,

    Tu pourrais peut-être utiliser la PROC CORR :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    proc corr data = table;
      var variable1 variable2;
    run;
    Bon courage

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2009
    Messages : 51
    Points : 49
    Points
    49
    Par défaut
    A priori, je pense que cette fonction ne me donne comme résultat qu'un coefficient de corrélation de pearson.
    Alors que je souhaite obtenir un coefficient de corrélation intraclasse qui parmet de mesurer la concordance entre deux instruments qui mesurent une même variable quantitative...

  4. #4
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    72
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2008
    Messages : 72
    Points : 75
    Points
    75
    Par défaut
    La PROC CORR mesure aussi d'autres coefficients de corrélation (Spearman, Kendall, ...) et pourrait te donner une indication quand à la concordance entre tes deux instruments de mesure. Peut-être également voir du côté de la régression.

    Sinon, lorsque l'on s'intéresse à la concordance entre deux techniques de mesure, il y a aussi la méthode de Bland & Altman. Tu trouveras un peu de doc de ce côté :
    http://www2.sas.com/proceedings/sugi25/25/po/25p207.pdf
    http://www2.sas.com/proceedings/sugi28/208-28.pdf

    Bon courage

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    72
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2008
    Messages : 72
    Points : 75
    Points
    75
    Par défaut
    Juste pour précision, même c'est la même variable quantitative qui est mesurée, tu dois à mon avis avoir 2 variables différentes qui correspondent aux mesures réalisées par tes 2 instruments qui eux sont différents ...

  6. #6
    Rédacteur

    Homme Profil pro
    SAS ALLIANCE SILVER. Consultant et formateur SAS et Cognos.
    Inscrit en
    Avril 2009
    Messages
    2 497
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : SAS ALLIANCE SILVER. Consultant et formateur SAS et Cognos.
    Secteur : Conseil

    Informations forums :
    Inscription : Avril 2009
    Messages : 2 497
    Points : 6 064
    Points
    6 064
    Par défaut
    si c'est le critère de WARD qui t'intéresse, est-ce que la PROC CLUSTER ou DISTANCE pourrait t'aider à retrouver un résultat pertinent pour toi ?
    N'oubliez pas de cliquer sur lorsque votre problème est réglé !

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Août 2009
    Messages
    51
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2009
    Messages : 51
    Points : 49
    Points
    49
    Par défaut
    j'ai trouvé: il y'a une macro réalisée spécialement pour le coefficient de corrélation intraclasse. Je vous la file:

    ****************************************************************/
    /* S A S S A M P L E L I B R A R Y */
    /* */
    /* NAME: INTRACC */
    /* TITLE: Intraclass Correlations */
    /* PRODUCT: STAT */
    /* SYSTEM: ALL */
    /* KEYS: */
    /* PROCS: GLM */
    /* DATA: */
    /* */
    /* SUPPORT: saswss UPDATE: 03Dec93 */
    /* REF: */
    /* MISC: */
    /* */
    /****************************************************************/

    /*-------------------------------------------------------------------

    DISCLAIMER:

    THIS INFORMATION IS PROVIDED BY SAS INSTITUTE INC. AS A SERVICE
    TO ITS USERS. IT IS PROVIDED "AS IS". THERE ARE NO WARRANTIES,
    EXPRESSED OR IMPLIED, AS TO MERCHANTABILITY OR FITNESS FOR A
    PARTICULAR PURPOSE REGARDING THE ACCURACY OF THE MATERIALS OR CODE
    CONTAINED HEREIN.

    -------------------------------------------------------------------*/

    /*******************************************************************

    INTRACC.SAS -- macro to calculate reliabilities for Intraclass
    correlations.

    This macro calculates the six intraclass correlations
    discussed in Shrout, P.E., and Fleiss, J.L "Intraclass correlations:
    uses in assessing rater reliability," Psychological Bulletin, 1979,
    86, 420-428. Additionally it calculates two intraclass correlations
    using formulae from Winer, B.J. "Statistical Principles in
    Experimental Design," which are identical to two of the six from
    Shrout and Fleiss.

    I did that as a check on myself because it is
    reassuring when you get the same result both ways.
    Additionally it calculates the reliability of the mean of nrater
    ratings where nrater is a parameter of the macro, using the
    Spearmen-Brown prophecy formula, so that one can examine the effect
    obtaining more raters would have on the reliability of a mean.

    Notation used in calculating the three correlations via the Winer
    formulae is taken from Winer while notation used in calculating the
    six correlations using the Shrout and Fleiss formulae is taken from
    Shrout and Fleiss. That means that in some cases I used two
    differently named variables to hold the same thing so I could use
    a variable with the same name as the reference when calculating
    a correlation taken from that reference.

    In Shrout and Fleiss notation, these six correlations and their
    uses are as follows:
    ICC(1,1): used when each subject is rated by multiple raters,
    raters assumed to be randomly assigned to subjects,
    all subjects have the same number of raters.
    ICC(2,1): used when all subjects are rated by the same raters
    who are assumed to be a random subset of all possible
    raters.
    ICC(3,1): used when all subjects are rated by the same raters
    who are assumed to be the entire population of raters.
    ICC(1,k): Same assumptions as ICC(1,1) but reliability for the
    mean of k ratings.
    ICC(2,k): Same assumptions as ICC(2,1) but reliability for the
    mean of k ratings.
    ICC(3,k): Same assumptions as ICC(3,1) but reliability for the
    mean of k ratings. Assumes additionally no subject by
    judges interaction.

    Instructions:
    The macro arguments are as follows, where "!" indicates a
    required argument:

    * data= SAS dataset containing data. Default is _LAST_.
    ! target= variable indexing the experimental units, often
    subjects or persons, each of whom is rated several
    times.
    ! rater= variable indexing judge, or whatever is producing
    multiple ratings for each subject.
    ! depvar= dependent variable list, or list of variables for
    which each target was rated by each rater.
    * nrater= For use in Spearman-Brown Prophecy formula to
    estimate the reliability of the mean of nrater
    ratings, where nrater is different than the number
    of raters actually used in the data. Default is 0,
    which omits this computation.
    * out= Name of output data set to contain the statistics.
    Default is _DATA_.
    * print= 0 for no printout, 1 to print the intraclass
    correlations and related statistics, 2 to print
    the summary statistics from GLM as well, 3 to print
    all the GLM results as well. Default is 1.
    * details= 1 to include detail variables,
    MSW MSB WMS EMS EDF BMS BDF JMS JDF
    0 to exclude

    If there are n targets and k ratings for each target, each target-
    rating occupies one observation, or in other words, there are n*k
    observations in the dataset.
    The macro uses GLM to break the total variability into that due to
    between targets, between judges, and residual. For the formulae
    which assume a one-way design, the SS and DF for between judges and
    residual are added to give simply a within-targets SS.
    This macro assumes that all targets are rated by judges numbered
    with the same judge numbers, even if they are not the same judges.
    In other words, each subject is rated by k judges, labeled, say,
    1,2,...,k, even if they are not the same judges for each subject.
    That is so GLM can break out a between judges SS.

    Example:

    data ratings;
    do product=1 to 5;
    do judge=1 to 3;
    input rating @@;
    output;
    end;
    end;
    cards;
    1 1 5
    3 2 6
    5 3 7
    7 4 8
    9 5 9
    ;

    %intracc(depvar=rating,target=product,rater=judge,nrater=10);
    %intracc(data=rating,depvar=rating,target=product,rater=judge,
    print=3,out=intclcor);

    Robert M. Hamer, Ph.D., Associate Professor of Psychiatry and
    Biostatistics, Virginia Commonwealth University, 2-7-1991.

    Copyright (C) 1990 by Robert M. Hamer, all rights reserved.
    This macro may be distributed freely as long as all comments are
    included.

    ********************************************************************/

    ;
    %macro intracc(data=_LAST_,
    target=TARGET???,
    rater=RATER???,
    depvar=DEPVAR???,
    nrater=0,out=_DATA_,
    print=1,
    details=0);

    title2 'Intraclass Correlations for Inter-Rater Reliability';
    proc glm data=&data outstat=_stats_
    %if &print<3 %then noprint; ;
    * use glm to get sums of squares for use in reliability calculation;
    class &target &rater;
    model &depvar = &target &rater ;
    run;

    proc sort data=_stats_;
    by _name_ _SOURCE_;
    where _type_ ^= 'SS1';
    run;

    %if &print>=2 %then %do;
    proc print data=_stats_;
    title3 'Statistics from 2-way ANOVA w/o Interaction';
    run;
    %end;

    data &out;
    * title3 'Calculate all reliabilities in one fell swoop';
    title3;
    retain msw msb wms ems edf bms bdf jms jdf k;
    set _stats_;
    by _name_;
    if _type_='SS1' then delete;
    if _source_='ERROR' then do;
    ems=ss/df;
    edf=df;
    end;
    if _source_="%upcase(&target)" then do;
    bms=ss/df;
    msb=bms;
    bdf=df;
    end;
    if _source_="%upcase(&rater)" then do;
    jms=ss/df;
    jdf=df;
    k=df+1;
    end;
    if last._name_ then do;
    msw=((ems*edf)+(jms*jdf))/(edf+jdf);
    wms=msw;
    n=bdf+1;
    theta=(msb-msw)/(k*msw); * used in Winer formulae;
    wsingle=theta/(1+theta); * Winer ICC(1,1);
    wk=(k*theta)/(1+k*theta); * Winer ICC(1,k);
    %if &nrater %then %do;
    wnrater=(&nrater*theta)/(1+&nrater*theta); * Winer reliability
    if mean of nraters;
    %end;
    sfsingle=(bms-wms)/(bms+(k-1)*wms); * ICC(1,1);
    sfrandom=(bms-ems)/
    ((bms)+((k-1)*ems)+((k*(jms-ems))/n)); * ICC(2,1);
    sffixed=(bms-ems)/(bms+((k-1)*ems)); * ICC(3,1);
    sfk=(bms-wms)/bms; * ICC(1,k);
    sfrandk=(bms-ems)/(bms+((jms-ems)/n)); * ICC(2,k);
    sffixedk=(bms-ems)/bms; * ICC(3,k) with no
    interaction assumption;
    output;
    end;
    label wsingle="Winer: single score"
    wk="Winer: mean of k scores"
    %if &nrater %then %do;
    wnrater="Winer: mean of &nrater scores"
    %end;
    sfsingle="Shrout-Fleiss ICC(1,1): single score"
    sfrandom="Shrout-Fleiss ICC(2,1): random set"
    sffixed="Shrout-Fleiss ICC(3,1): fixed set"
    sfk="S-F ICC(1,k): mean k scores"
    sfrandk="S-F ICC(2,k): rand set mean k scrs"
    sffixedk="S-F ICC(3,k): fixd set mean k scrs";
    run;

    %if &print %then %do;
    proc print label;
    id _name_;
    var
    %if &details %then msw msb wms ems edf bms bdf jms jdf k theta wsingle wk ;
    %if &nrater %then wnrater;
    sfsingle sfrandom sffixed
    sfk sfrandk sffixedk;
    run;
    %end;

    %mend intracc;

    ;

  8. #8
    Nouveau Candidat au Club
    Femme Profil pro
    Enseignant
    Inscrit en
    Avril 2019
    Messages
    1
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 28
    Localisation : Belgique

    Informations professionnelles :
    Activité : Enseignant

    Informations forums :
    Inscription : Avril 2019
    Messages : 1
    Points : 1
    Points
    1
    Par défaut INTRACLASS et police
    Bonjour,

    Je ne gère absolument pas les MACROS, pensez-vous pouvoir me donner la procédure SAS à faire pour obtenir un coefficient intraclass avec le graphe correspondant. J'ai déjà parcouru toutes les infos sur le forum mais rien ne fonctionne.


    De plus, j'aimerais pouvoir modifier la TAILLE de la police d'un graphe type nuage de points dans SAS également. j'ai déjà réalisé ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    DATA entree ;
    INFILE 'C:\memoire\equiv.csv' DLM=';' DSD ;
    INPUT ID $ V1 V2 V3 V4 T1 T2 T3 T4 ;
    PROC CORR DATA=entree SPEARMAN ;
    VAR V1 V2 ;
    PROC GPLOT DATA=entree ;
    PLOT V1*V2 ;
    SYMBOL i=RL v=dot;
    goptions vsize=16cm hsize=20cm ;
    PROC PRINT DATA=entree ;
    RUN ;
    Mais cela me donne en réalité une longueur différentes d'axes, moi j'aimerais que les chiffres des axes soient en gras et taille police grande...

    VRAIMENT je remercie ++++ la personne qui peut m'aider!

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 17/07/2015, 09h28
  2. Coefficient de corrélation intra-classe
    Par jdepar900e dans le forum SAS STAT
    Réponses: 4
    Dernier message: 04/03/2014, 12h25
  3. Coefficient de corélation intra-classe
    Par mathis86 dans le forum SAS STAT
    Réponses: 9
    Dernier message: 08/03/2012, 17h11
  4. Coefficient de corrélation exponentielle
    Par Giansolo dans le forum Statistiques, Data Mining et Data Science
    Réponses: 6
    Dernier message: 23/03/2007, 10h58
  5. Coefficient de corrélation
    Par oceanediana dans le forum Access
    Réponses: 7
    Dernier message: 26/07/2006, 07h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo