Last updated on 2025-12-07 07:50:29 CET.
| Package | ERROR | OK |
|---|---|---|
| languageR | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.6
Check: examples
Result: ERROR
Running examples in ‘languageR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: durationsOnt
> ### Title: Durational measurements on the Dutch prefix ont-
> ### Aliases: durationsOnt
> ### Keywords: datasets
>
> ### ** Examples
>
> data(durationsOnt)
>
> ###### modeling the duration of the prefix
>
> prefix.lm = lm(DurationOfPrefix ~ (YearOfBirth + SpeechRate) * Frequency,
+ data = durationsOnt)
> summary(prefix.lm)
Call:
lm(formula = DurationOfPrefix ~ (YearOfBirth + SpeechRate) *
Frequency, data = durationsOnt)
Residuals:
Min 1Q Median 3Q Max
-0.099022 -0.023386 0.000158 0.026762 0.080279
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.2553451 0.0345126 7.399 5.20e-11 ***
YearOfBirth -0.0018550 0.0004437 -4.181 6.42e-05 ***
SpeechRate 0.0022573 0.0054251 0.416 0.67828
Frequency -0.0097943 0.0106787 -0.917 0.36135
YearOfBirth:Frequency 0.0004374 0.0001428 3.063 0.00284 **
SpeechRate:Frequency -0.0032922 0.0018223 -1.807 0.07395 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.03532 on 96 degrees of freedom
Multiple R-squared: 0.221, Adjusted R-squared: 0.1804
F-statistic: 5.446 on 5 and 96 DF, p-value: 0.0001872
>
> # ---- model criticism
>
> plot(prefix.lm)
> outliers = c(36, 35, 17, 72)
> prefix.lm = lm(DurationOfPrefix ~ (YearOfBirth + SpeechRate) * Frequency,
+ data = durationsOnt[-outliers,])
> summary(prefix.lm)
Call:
lm(formula = DurationOfPrefix ~ (YearOfBirth + SpeechRate) *
Frequency, data = durationsOnt[-outliers, ])
Residuals:
Min 1Q Median 3Q Max
-0.098553 -0.025442 -0.000857 0.026944 0.081562
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.2517499 0.0350307 7.187 1.71e-10 ***
YearOfBirth -0.0018584 0.0004511 -4.119 8.29e-05 ***
SpeechRate 0.0029918 0.0054993 0.544 0.58773
Frequency -0.0080787 0.0110724 -0.730 0.46747
YearOfBirth:Frequency 0.0004433 0.0001456 3.045 0.00304 **
SpeechRate:Frequency -0.0037299 0.0018739 -1.990 0.04951 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.03556 on 92 degrees of freedom
Multiple R-squared: 0.2291, Adjusted R-squared: 0.1872
F-statistic: 5.468 on 5 and 92 DF, p-value: 0.0001888
>
> ###### modeling the presence of the /t/
>
> library(rms)
Error in library(rms) : there is no package called ‘rms’
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc