|
224 | 224 |
|
225 | 225 | from __future__ import absolute_import
|
226 | 226 | from __future__ import print_function
|
| 227 | +from builtins import input |
227 | 228 | from . import pstat # required 3rd party module
|
228 | 229 | import math, string, copy # required python modules
|
229 | 230 | from types import *
|
@@ -776,7 +777,7 @@ def lpaired(x,y):
|
776 | 777 | samples = ''
|
777 | 778 | while samples not in ['i','r','I','R','c','C']:
|
778 | 779 | print('\nIndependent or related samples, or correlation (i,r,c): ', end=' ')
|
779 |
| - samples = raw_input() |
| 780 | + samples = input() |
780 | 781 |
|
781 | 782 | if samples in ['i','I','r','R']:
|
782 | 783 | print('\nComparing variances ...', end=' ')
|
@@ -811,7 +812,7 @@ def lpaired(x,y):
|
811 | 812 | corrtype = ''
|
812 | 813 | while corrtype not in ['c','C','r','R','d','D']:
|
813 | 814 | print('\nIs the data Continuous, Ranked, or Dichotomous (c,r,d): ', end=' ')
|
814 |
| - corrtype = raw_input() |
| 815 | + corrtype = input() |
815 | 816 | if corrtype in ['c','C']:
|
816 | 817 | m,b,r,p,see = linregress(x,y)
|
817 | 818 | print('\nLinear regression for continuous variables ...')
|
@@ -2988,7 +2989,7 @@ def apaired(x,y):
|
2988 | 2989 | samples = ''
|
2989 | 2990 | while samples not in ['i','r','I','R','c','C']:
|
2990 | 2991 | print('\nIndependent or related samples, or correlation (i,r,c): ', end=' ')
|
2991 |
| - samples = raw_input() |
| 2992 | + samples = input() |
2992 | 2993 |
|
2993 | 2994 | if samples in ['i','I','r','R']:
|
2994 | 2995 | print('\nComparing variances ...', end=' ')
|
@@ -3023,7 +3024,7 @@ def apaired(x,y):
|
3023 | 3024 | corrtype = ''
|
3024 | 3025 | while corrtype not in ['c','C','r','R','d','D']:
|
3025 | 3026 | print('\nIs the data Continuous, Ranked, or Dichotomous (c,r,d): ', end=' ')
|
3026 |
| - corrtype = raw_input() |
| 3027 | + corrtype = input() |
3027 | 3028 | if corrtype in ['c','C']:
|
3028 | 3029 | m,b,r,p,see = linregress(x,y)
|
3029 | 3030 | print('\nLinear regression for continuous variables ...')
|
|
0 commit comments