## dtaA
## ------------- ----- ----------- ---------- --------- -------
## 1
## Df Sum Sq Mean Sq F value Pr(>F)
## 1
## dtanew$BMIff 3 2938.789 979.59649 20.11202 0
## 1
## Residuals 3834 186742.720 48.70702 NA NA
## 1
##
## Two Sample t-test
##
## data: dtanew$SYSBP by dtanew$ANYCHDf
## t = -11.625, df = 3836, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -11.010630 -7.832767
## sample estimates:
## mean in group Health mean in group 心臟病
## 130.1014 139.5231
##
## Call:
## lm(formula = dtanew$SYSBP ~ factor(dtanew$BMIff) + factor(dtanew$SEXf) +
## dtanew$AGE + factor(dtanew$EDUCf))
##
## Residuals:
## Min 1Q Median 3Q Max
## -61.971 -12.833 -2.808 10.208 140.810
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 84.23344 2.25273 37.392 < 2e-16 ***
## factor(dtanew$BMIff).L 13.36893 2.05821 6.495 9.49e-11 ***
## factor(dtanew$BMIff).Q 0.74518 1.58186 0.471 0.6376
## factor(dtanew$BMIff).C 0.03344 0.88845 0.038 0.9700
## factor(dtanew$SEXf)男 -3.12715 0.69925 -4.472 8.00e-06 ***
## dtanew$AGE 0.93201 0.04104 22.712 < 2e-16 ***
## factor(dtanew$EDUCf).L 1.11966 1.47760 0.758 0.4487
## factor(dtanew$EDUCf).Q -2.53854 1.15324 -2.201 0.0278 *
## factor(dtanew$EDUCf).C -0.08820 0.71983 -0.123 0.9025
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 19.81 on 3399 degrees of freedom
## Multiple R-squared: 0.2133, Adjusted R-squared: 0.2115
## F-statistic: 115.2 on 8 and 3399 DF, p-value: < 2.2e-16
##
## Call:
## lm(formula = dtanew$SYSBP ~ factor(dtanew$CURSMOKE) + factor(dtanew$SEXf) +
## dtanew$AGE + factor(dtanew$EDUCf))
##
## Residuals:
## Min 1Q Median 3Q Max
## -57.87 -13.62 -2.32 10.22 145.77
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 85.28778 2.32784 36.638 < 2e-16 ***
## factor(dtanew$CURSMOKE)1 -2.23556 0.73747 -3.031 0.00245 **
## factor(dtanew$SEXf)男 -1.31303 0.73054 -1.797 0.07237 .
## dtanew$AGE 0.97603 0.04301 22.694 < 2e-16 ***
## factor(dtanew$EDUCf).L -0.42800 1.52137 -0.281 0.77848
## factor(dtanew$EDUCf).Q -2.50149 1.19095 -2.100 0.03577 *
## factor(dtanew$EDUCf).C 0.18684 0.74317 0.251 0.80151
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 20.46 on 3401 degrees of freedom
## Multiple R-squared: 0.1604, Adjusted R-squared: 0.159
## F-statistic: 108.3 on 6 and 3401 DF, p-value: < 2.2e-16
##
## Call:
## lm(formula = dtanew$SYSBP ~ factor(dtanew$CURSMOKE) + factor(dtanew$SEXf) +
## dtanew$AGE + factor(dtanew$EDUCf))
##
## Residuals:
## Min 1Q Median 3Q Max
## -57.87 -13.62 -2.32 10.22 145.77
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 85.28778 2.32784 36.638 < 2e-16 ***
## factor(dtanew$CURSMOKE)1 -2.23556 0.73747 -3.031 0.00245 **
## factor(dtanew$SEXf)男 -1.31303 0.73054 -1.797 0.07237 .
## dtanew$AGE 0.97603 0.04301 22.694 < 2e-16 ***
## factor(dtanew$EDUCf).L -0.42800 1.52137 -0.281 0.77848
## factor(dtanew$EDUCf).Q -2.50149 1.19095 -2.100 0.03577 *
## factor(dtanew$EDUCf).C 0.18684 0.74317 0.251 0.80151
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 20.46 on 3401 degrees of freedom
## Multiple R-squared: 0.1604, Adjusted R-squared: 0.159
## F-statistic: 108.3 on 6 and 3401 DF, p-value: < 2.2e-16
## # A tibble: 1 x 7
## format width height colorspace matte filesize density
## <chr> <int> <int> <chr> <lgl> <int> <chr>
## 1 JPEG 500 228 sRGB FALSE 0 144x144
class:center ##SYSBP1- Extension coefficients plot —