SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

LINEAR CORRELATION

Name:
    LINEAR CORRELATION (LET)
Type:
    Let Subcommand
Purpose:
    Compute the correlation from a linear least squares fit between two variables.
Syntax:
    LET <par> = LINEAR CORRELATION <y> <x>
                            <SUBSET/EXCEPT/FOR qualification>
    where <y> is dependent response variable;
                <x> is the independent response variable;
                <par> is a parameter where the correlation value is saved;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET A1 = LINEAR CORRELATION Y X
    LET A1 = LINEAR CORRELATION Y X SUBSET X > 1
Note:
    Dataplot's built-in statistics can be used with a number of commands. For details, enter HELP STATISTIC.
Default:
    None
Synonyms:
    None
Related Commands:
    LINEAR SLOPE = Compute the slope parameter from a linear least squares fit.
    LINEAR SLOPE SD = Compute the standard deviation of the slope parameter from a linear least squares fit.
    LINEAR INTERCEPT = Compute the intercept from a linear least squares fit.
    LINEAR INTERCEPT SD = Compute the standard deviation of the intercept parameter from a linear least squares fit.
    LINEAR RESSD = Compute the residual standard deviation from a linear least squares fit.
Applications:
    Exploratory Data Analysis
Implementation Date:
    1988/03
Program 1:
     
    SKIP 25
    READ BERGER1.DAT Y X
    LET A = LINEAR CORRELATION Y X
        
    The value 0.9456 is returned.
Program 2:
    SKIP 25
    READ BERGER1.DAT Y X BATCH
    .
    LABEL CASE ASIS
    TITLE CASE ASIS
    Y1LABEL Correlation
    X1LABEL Batch
    TITLE Linear Correlation Plot
    CHARACTER X BLANK
    LINE BLANK SOLID
    TIC OFFSET UNITS SCREEN
    TIC MARK OFFSET 3 3
    LINEAR CORRELATION PLOT Y X BATCH
        
    plot generated by sample program

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 09/08/2010
Last updated: 11/16/2015

Please email comments on this WWW page to alan.heckert@nist.gov.