Skip to content

Commit ac623b1

Browse files
committed
version 11.11.23
1 parent 543ab1f commit ac623b1

File tree

15 files changed

+1675
-127
lines changed

15 files changed

+1675
-127
lines changed

DESCRIPTION

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Dyn4cast
22
Title: Dynamic Modeling and Machine Learning Environment
3-
Version: 11.11.10.9000
3+
Version: 11.11.23.9000
44
Authors@R:
55
person(given = "Job",
66
family = "Nmadu",
@@ -23,8 +23,6 @@ Imports:
2323
ggplot2,
2424
magrittr,
2525
formattable,
26-
xlsx,
27-
readxl,
2826
utils,
2927
lifecycle,
3028
zoo,
@@ -33,9 +31,12 @@ Imports:
3331
qpcR,
3432
dplyr,
3533
modelsummary,
36-
kableExtra,
37-
knitr,
38-
timeDate
34+
timeDate,
35+
caret,
36+
corrplot,
37+
ggtext,
38+
marginaleffects,
39+
tibble
3940
Depends:
4041
tidyverse,
4142
R (>= 2.10)
@@ -44,6 +45,10 @@ Suggests:
4445
rmarkdown,
4546
covr,
4647
qpdf,
48+
xlsx,
49+
readxl,
50+
kableExtra,
51+
knitr,
4752
spelling
4853
Config/testthat/edition: 3
4954
URL: https://github.com/JobNmadu/Dyn4cast

NAMESPACE

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export(MLMetrics)
66
export(MallowsCp)
77
export(Percent)
88
export(constrainedforecast)
9+
export(corplot)
910
export(data_transform)
11+
export(estimate_plot)
1012
export(formattedcut)
1113
export(invscaledlogit)
1214
export(quicksummary)
@@ -54,30 +56,41 @@ importFrom(ModelMetrics,specificity)
5456
importFrom(ModelMetrics,tnr)
5557
importFrom(ModelMetrics,tpr)
5658
importFrom(broom,augment)
59+
importFrom(caret,varImp)
60+
importFrom(corrplot,corrplot.mixed)
5761
importFrom(dplyr,mutate)
5862
importFrom(dplyr,select_if)
5963
importFrom(forecast,auto.arima)
6064
importFrom(forecast,forecast)
6165
importFrom(formattable,comma)
66+
importFrom(ggplot2,.data)
6267
importFrom(ggplot2,aes)
68+
importFrom(ggplot2,element_blank)
6369
importFrom(ggplot2,facet_wrap)
70+
importFrom(ggplot2,geom_col)
71+
importFrom(ggplot2,geom_jitter)
6472
importFrom(ggplot2,geom_line)
73+
importFrom(ggplot2,geom_point)
74+
importFrom(ggplot2,geom_text)
75+
importFrom(ggplot2,geom_vline)
6576
importFrom(ggplot2,ggplot)
6677
importFrom(ggplot2,ggsave)
78+
importFrom(ggplot2,guides)
6779
importFrom(ggplot2,labs)
6880
importFrom(ggplot2,scale_color_hue)
6981
importFrom(ggplot2,scale_fill_hue)
82+
importFrom(ggplot2,scale_y_continuous)
83+
importFrom(ggplot2,stat_summary)
7084
importFrom(ggplot2,theme)
7185
importFrom(ggplot2,theme_bw)
7286
importFrom(ggplot2,theme_minimal)
7387
importFrom(ggplot2,vars)
74-
importFrom(kableExtra,kable_styling)
75-
importFrom(knitr,kable)
88+
importFrom(ggtext,element_markdown)
7689
importFrom(lifecycle,badge)
7790
importFrom(magrittr,"%>%")
91+
importFrom(marginaleffects,avg_slopes)
7892
importFrom(modelsummary,modelsummary)
7993
importFrom(qpcR,PRESS)
80-
importFrom(readxl,read_excel)
8194
importFrom(splines,bs)
8295
importFrom(stats,AIC)
8396
importFrom(stats,BIC)
@@ -91,10 +104,10 @@ importFrom(stats,quantile)
91104
importFrom(stats,sd)
92105
importFrom(stats,smooth.spline)
93106
importFrom(stats,var)
107+
importFrom(tibble,rownames_to_column)
94108
importFrom(tidyr,pivot_longer)
95109
importFrom(timeDate,kurtosis)
96110
importFrom(timeDate,skewness)
97111
importFrom(utils,globalVariables)
98-
importFrom(xlsx,write.xlsx2)
99112
importFrom(zoo,as.Date)
100113
importFrom(zoo,yearmon)

NEWS.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11

2+
# Dyn4cast 11.11.23 2023-07-07
3+
4+
The new version is coming with a huge improvement. The number of functional forms of the linear regression has increased from seven to 14 based on the Taylor Series expansion of the Box-Cox transformations. In addition, two new plots are added to the suite i.e. fitted and effects plots. Also, Tables of marginal effects are now produced for fast inference from the estimated coefficients. This new version also comes with 47 metrics for assessing model performance and carry out model diagnostics. This new version also comes with the capability of making prediction about each of the functional forms.
5+
6+
There are two new functions coming along with this new version. `corplot` for plotting the correlation matrix of the variables included in the model. `estimate_plot` is for plotting the estimated coefficients in their order of significance in the estimated model. In addition to a new plot, `visual means` it has become lots easier to understand the nature of the distribution of the variables, digest and make inference about the model.
7+
8+
Even with this huge improvements, the principle of one line of code is maintained. It is easy and can been implemented with less headaches once the data has been cleaned. The structure is `Linearsystems(y, x, mod, limit, Test)`. The argument `Test` is optional, if omitted, the prediction is made with `NULL` data.
9+
10+
As always, comments, questions and suggestions are welcome.
11+
212
# Dyn4cast 11.11.10-kappa 2023-04-02
313

4-
`quicksummary` now returs a data frame rather a `kable` Table.
14+
`quicksummary` now returns a data frame rather a `kable` Table.
515

6-
The internal argument `digits` is remooved due to observed exageration of the final rates
16+
The internal argument `digits` in `Percent` is removed due to observed exaggeration of the final rates
717

818
Final formatting of data frames in the `Linearsystems` package was removed. Now, the estimates can display in the `console`.
919

R/DynamicForecast.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#' @importFrom ggplot2 aes
2626
#' @importFrom ggplot2 labs
2727
#' @importFrom ggplot2 scale_color_hue
28-
#' @importFrom xlsx write.xlsx2
29-
#' @importFrom readxl read_excel
3028
#' @importFrom magrittr %>%
3129
#' @importFrom formattable comma
3230
#' @importFrom forecast auto.arima

0 commit comments

Comments
 (0)