%0 Generic %A M. Dixon, Philip %A Pechmann, Joseph H. K. %D 2016 %T Supplement 1. SAS program code to estimate regression slopes and then test equivalence, and Ambystoma data. %U https://wiley.figshare.com/articles/dataset/Supplement_1_SAS_program_code_to_estimate_regression_slopes_and_then_test_equivalence_and_Ambystoma_data_/3524840 %R 10.6084/m9.figshare.3524840.v1 %2 https://wiley.figshare.com/ndownloader/files/5595548 %2 https://wiley.figshare.com/ndownloader/files/5595551 %2 https://wiley.figshare.com/ndownloader/files/5595554 %K amphibian decline %K Desmognathus %K population trends %K statistical power %K equivalence tests %K testing for no effect %K Ambystoma %K Environmental Science %K Ecology %X

File List

EquivSlope.sas -- EquivSlope.sas: SAS (SAS 1999) program code to estimate regression slopes, assuming ar(1) errors, then test equivalence.

Ambystoma.txt -- Ambystoma data set.

Description

The file "EquivSlope.sas" is SAS (SAS 1999) program code to estimate regression slopes, assuming ar(1) errors, then test equivalence.  The code was written for SAS version 8.2.  It produces identical results in SAS version 9.0.  Comments are the text surrounded by /* and */.  The first data step (data trend;) reads the raw data and produces a SAS data set with one observation per species and year.  The proc mixed step estimates the regression slope for a log-linear model with ar(1), i.e., autocorrelated at lag 1, errors.  Parameter estimates are stored in the data set named parms.  The slopes are identified as effect = ‘year’.  The second data step (data tests;) does the equivalence test calculations for the slope, using an equivalence interval of (-0.0346, 0.0346).  LT is the t statistic for testing H0a (slope less than lower boundary).  UT is the t statistic for testing H0b (slope greater than upper boundary).  LP and UP are the corresponding P values.  This information is saved in a text file (ests.txt) and a SAS data set.  The final proc print step prints the equivalence test results.

 The file "Ambystoma.txt" is an Ambystoma data set.  The first line is a header line with variable names.  Subsequent lines contain the species (A. talpoideum or A. tigrinum), the year, and the count of breeding females.

%I Wiley