Running examples in ‘DanielBiostatistics10th-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: Chapter11
> ### Title: Chapter 11: Regression Analysis: Some Additional Techniques
> ### Aliases: Chapter11
> 
> ### ** Examples
> 
> library(DanielBiostatistics10th)
> 
> # Example 11.1.1; Page 540, 
> head(EXA_C11_S01_01)
  case conc logConc
1    1 0.30   -0.52
2    2 2.75    0.44
3    3 2.27    0.36
4    4 2.37    0.37
5    5 1.12    0.05
6    6 0.60   -0.22
> head(log(EXA_C11_S01_01$conc, base = 10))
[1] -0.52287875  0.43933269  0.35602586  0.37474835  0.04921802 -0.22184875
> head(EXA_C11_S01_01$logConc)
[1] -0.52  0.44  0.36  0.37  0.05 -0.22
> 
> # Example 11.1.2; Page 542, 
> head(EXA_C11_S01_02)
  case sbp weight   bmi
1    1 126    125 24.41
2    2 129    130 23.77
3    3 126    132 20.07
4    4 123    200 27.12
5    5 124    321 39.07
6    6 125    100 20.90
> cor.test(~ sbp + weight, data = EXA_C11_S01_02)

	Pearson's product-moment correlation

data:  sbp and weight
t = -1.0887, df = 13, p-value = 0.2961
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
 -0.69797  0.26200
sample estimates:
       cor 
-0.2890581 

> cor.test(~ sbp + bmi, data = EXA_C11_S01_02) 

	Pearson's product-moment correlation

data:  sbp and bmi
t = -0.78459, df = 13, p-value = 0.4468
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
 -0.6536907  0.3362598
sample estimates:
       cor 
-0.2126292 

> 
> # Example 11.2.1; Page 545, 
> head(EXA_C11_S02_01)
  CASENO GRAMS WEEKS SMOKE
1      1  3147    40     0
2      2  2977    41     0
3      3  3119    38     0
4      4  3487    38     0
5      5  4111    39     0
6      6  3572    41     0
> d1121 = within(EXA_C11_S02_01, expr = {
+   SMOKE = as.logical(SMOKE)
+ })
> xlab1121 = 'Length of gestation (weeks)'; ylab1121 = 'Birth weight (grams)'
> car::scatterplot(GRAMS ~ WEEKS | SMOKE, data = d1121, regLine = FALSE, smooth = FALSE,
+             xlab = xlab1121, ylab = ylab1121, main = 'Figure 11.2.1')
Error in loadNamespace(x) : there is no package called ‘car’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted