Professional Documents
Culture Documents
Code
1.
2.
X1
3.
X2
4.
X3
X4
X5
X6
X7
Explanation of user
variables
Feeding Habit
0 = Suspension Feeder
1 = Deposit Feeder
Size
0 = Small
1 = Large
Mobility
0 = Move
1 = Dont move
Flattened Body
0 = Flatten
1 = Not Flatten
Body form
0 = Rounded
1 = Not rounded
Life Habitat
0 = Individual
1 = Commensalism
Weight
0 = Less than 0.01g
1 = More than 0.01g
Distribution
0 = More than 10 ind.
1 = Less than 10 ind.
1 0 0 1 0 1 0 1
1 0 1 0 0 0 0 0
1 0 0 0 1 1 1 0
1 0 1 1 0 1 0 0
1 0 1 1 0 0 0 0
0 0 1 1 0 1 1 0
1 0 0 1 0 0 0 0
1 0 0 1 0 1 0 0
;
ods rtf file='robdunc0.rtf'
style=journal;
/* Multiple Logistic Regression */
proc logistic data=Sampling ;
model fhabit (event='1')= size
mobility fbody bform lhabit weight
dist;
run;
Case II
Regression
Data Sampling;
input size mobility fbody bform
lhabit fhabit weight dist;
datalines;
0 1 1 1 1 0 0 0
0 0 0 1 0 0 0 0
0 0 1 1 0 0 0 0
0 0 1 1 0 0 1 0
1 0 1 0 0 0 0 0
0 0 1 0 0 0 0 1
0 0 0 1 0 0 1 0
0 0 0 1 0 0 1 0
1 0 0 1 0 1 0 1
1 0 1 0 0 0 0 0
1 0 0 0 1 1 1 0
1 0 1 1 0 1 0 0
1 0 1 1 0 0 0 0
0 0 1 1 0 1 1 0
1 0 0 1 0 0 0 0
1 0 0 1 0 1 0 0
;
ods rtf file='robdunc0.rtf'
style=journal;
Case III
0
1
1
0
0
0
1
0
0
1
1
1
0
0
0
1
0
1
1
0
0
0
0
0
;
ods rtf file='robdunc0.rtf'
style=journal;
/* Bootstrap With Case Resampling
*/
proc surveyselect data=Sampling
out=boot1 method=urs samprate=1
outhits rep=3;
run;
/* Multiple Logistic Regression */
proc logistic data=boot1 ;
model fhabit (event='1')= size
mobility fbody bform lhabit weight
dist;
run;
/* Print out data for Bootstrap*/
proc print data=boot1;
run;
1
1
1
1
1
0
0
0
0
0
0
1
0
1
1
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
0
0
0
REFERENCES
D. W. Hosmer and S. Lemeshow. 2000.
Applied logistic regression, second
edition, John Wiley and Sons.
Cassel D.L. (2010). Bootstrap Mania: Re
sampling the SAS. SAS Global Forum
2010: Statistics and Data Analysis. Paper
268-2010: Pp 1-11.
5