source: WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YTNEOPI1.m@ 1800

Last change on this file since 1800 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 3.7 KB
Line 
1YTNEOPI1 ;ALB/ASF-NEO PI-R TEST PROFILE ;7/28/95 12:56 ;
2 ;;5.01;MENTAL HEALTH;**10**;Dec 30, 1994
3A ;setup
4 K YSAST S YSTV=75,YSBV=25,YSINC=1,YSLE=5 F J=31,32,33,34,35,1:1:30 S A(J)=$P(S,U,J) S:A(J)>YSTV A(J)=YSTV S:A(J)<YSBV A(J)=YSBV
5 S YSVS=1,YSHS="75,65,55,45,35,25^"
6 S Z1="123456123456123456123456123456NEOAC"
7 S Z2=" VERY HIGH HIGH AVERAGE LOW VERY LOW"
8 S Z3="N N N N N N E E E E E E O O O O O O A A A A A A C C C C C C"
9 S Z4="1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6"
10 F I=1:1 S J=$P(YSHS,",",I) Q:J="" S H(I)=+J
11 S YSLC1=9999,YSLV=YSTV,YSIN2=YSINC/2
12 S YSHS=$O(H(-1)),H(-1)=-999
13TOP ;
14 D DTA^YTREPT
15 W !!?30,"NEO PI-R Profile",!?5,"Factors"
16 W ?16,Z3,!?5,"N E O A C",?16,Z4
17L ;loop thru graph
18 F I=31:1:35,1:1:30 S B(I)=(A(I)'<(YSLV-YSIN2))&(A(I)<(YSLV+YSIN2)) I $D(C(I)) S:(C(I)'<(YSLV-YSIN2))&(C(I)<(YSLV+YSIN2)) B(I)=2
19 S YSLL=$S(YSLV=75:">74",YSLV=25:"<26",YSLV#10=0:YSLV,1:" ")
20W ;
21 S YSWS=(H(YSHS)>(YSLV-YSIN2))&(H(YSHS)<(YSLV+YSIN2)) I YSWS D WS G:YSLFT END S YSHS=$O(H(YSHS))
22 I 'YSWS D WL G:YSLFT END
23 S YSLC1=YSLC1+1 S:YSLC1>YSLE YSLC1=1
24 I YSLV>YSBV S YSLV=YSLV-YSINC GOTO L
25 D BOTTOM
26END ;
27 K A,B,YSA,YSTV,YSTVL,YSBV,YSINC,YSIN2,YSLE,YSVS,YSHS,V,H,YSLL,YSLC1,YSWS Q
28WL ;
29 D:IOST?1"C-".E SCR^YTREPT:$Y>(IOSL-4) Q:YSUOUT!YSTOUT
30 W !,$J($E(Z2,(76-YSLV))_YSLL,4),"|"
31 F I=31:1:35,1:1:30 W $S(B(I):$E(Z1,I)_" ",1:" ") W:I=35 "|"
32 W "|",YSLL Q
33WS ;
34 D:IOST?1"C-".E SCR^YTREPT:$Y>(IOSL-4) Q:YSUOUT!YSTOUT
35 W !,$J(YSLL,4),"|"
36 F I=31:1:35,1:1:30 W $S(B(I):$E(Z1,I)_"-",1:"--") W:I=35 "|"
37 W "|",YSLL Q
38 Q
39BOTTOM ;
40 Q:YSUOUT!YSTOUT
41 W !?5,"N E O A C",?16,Z3,!?16,Z4
42 W !!,"Copyright (c) 1985, 1988, 1992, 1994 by Psychological Assessment Resources Inc.",!,"Reproduced by permission."
43 Q
44IR ;responses
45 D RD^YTNEOPI
46 W !?30,"NEO PI-R Item Responses",!
47 F K=1:1:30 Q:YSLFT D:IOST?1"C-".E SCR^YTREPT:$Y+4>IOSL W ! F J=0,30,60,90,120,150,180,210 S I=J+K D IR1
48 W !," Validity A. " S I=241 D IR2
49 S X=$E(X,1,240)
50 W !!?30,"Summary of Responses",!?3
51 F J=1,2,3,4,5,"X" S J1=$L(X,J)-1/240*100 W $S(J=1:"SD",J=2:"D",J=3:"N",J=4:"A",J=5:"SA",1:"X"),": ",$J(J1,5,2),"% "
52 Q
53IR1 W $J(I,4),". "
54IR2 W $S($E(X,I)=1:"SD",$E(X,I)=2:" D",$E(X,I)=3:" N",$E(X,I)=4:" A",$E(X,I)=5:"SA",1:" X")," "
55 Q
56VALD ;validity index
57 D DTA^YTREPT W !!?30,"Validity Indices",!
58 D RD^YTNEOPI
59 I $L($E(X,1,240),"X")>42 W !,"Profile not scored as respondant has skipped more",!,"than 41 items.",! Q
60 S YSVFLAG=0
61 D SS,241,YN,RAND,VTXT
62 Q
63VTXT I YSVFLAG=0 W !,"Validity indices are within normal limits and the obtained",!,"test data appear to be valid.",! Q
64 Q:YSVFLAG=1
65 W !,"TEST RESULTS ARE NOT CONSIDERED VALID. The profile will",!,"be printed but it should only be used if the administrator has reason to"
66 W !,"believe that the profile is valid despite these indications of inaccurate",!,"or random responding."
67 Q
68241 S Y=$E(X,241) I (Y<3)!(Y="X") S YSVFLAG=2 W !,"The respondant has denied answering the questions honestly and accurately."
69 Q
70RAND ;randon resp
71 S Y=$E(X,1,240) I (Y?.E7"1".E)!(Y?.E10"2".E)!(Y?.E11"3".E)!(Y?.E15"4".E)!(Y?.E10"5".E) S YSVFLAG=2 W !,"The rater has used the same response option repeatedly in a manner",!,"that suggests random responding."
72 Q
73YN ;yea_nea
74 S Y=$E(X,1,240),Y=($L(Y,5)-1)+($L(Y,4)-1)
75 I Y>149 S YSVFLAG=1 W !,"This profile should be interpreted with CAUTION because a strong acquiescence",!,"bias may have influnced the results."
76 I Y<51 S YSVFLAG=1 W !,"This profile should be interpreted with CAUTION because a strong nay-saying",!,"bias may have influnced the results."
77 Q
78SS ;scale skips
79 F I=1:1:30 D SS1:$P(YSXK,U,I)>3
80 Q
81SS1 I 'YSVFLAG S YSVFLAG=1 W !,"The following facet scale(s) have more than 3 skipped items:"
82 W !?3,$P(^YTT(601,YSTEST,"S",I,0),U,2)
83 Q
Note: See TracBrowser for help on using the repository browser.