You can install regsim from github with:
# install.packages("devtools")
devtools::install_github("altaf-ali/regsim")
library(regsim)
model <- lm(mpg ~ wt + cyl, data = mtcars)
x <- list(wt = seq(1, 5, 0.1))
sim <- regsim(model, x)
plot(sim)
summary(sim)
## Profile 1
## wt 1.0000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p1 23.76409 27.18644 30.53649
## -----------------------------
##
## Profile 2
## wt 1.1000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p2 23.59607 26.86373 30.07739
## -----------------------------
##
## Profile 3
## wt 1.2000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p3 23.41249 26.54894 29.62726
## -----------------------------
##
## Profile 4
## wt 1.3000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p4 23.23101 26.23282 29.16755
## -----------------------------
##
## Profile 5
## wt 1.4000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p5 23.06549 25.91356 28.69872
## -----------------------------
##
## Profile 6
## wt 1.5000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p6 22.88206 25.59425 28.22569
## -----------------------------
##
## Profile 7
## wt 1.6000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p7 22.68541 25.2757 27.75492
## ----------------------------
##
## Profile 8
## wt 1.7000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p8 22.49176 24.9569 27.31877
## ----------------------------
##
## Profile 9
## wt 1.8000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p9 22.3149 24.63984 26.87791
## ----------------------------
##
## Profile 10
## wt 1.9000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p10 22.12272 24.31247 26.4137
## -----------------------------
##
## Profile 11
## wt 2.0000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p11 21.93097 23.98663 25.95443
## ------------------------------
##
## Profile 12
## wt 2.1000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p12 21.76279 23.66248 25.50431
## ------------------------------
##
## Profile 13
## wt 2.2000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p13 21.56533 23.3353 25.05497
## -----------------------------
##
## Profile 14
## wt 2.3000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p14 21.36708 23.01491 24.60544
## ------------------------------
##
## Profile 15
## wt 2.4000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p15 21.17007 22.69967 24.15585
## ------------------------------
##
## Profile 16
## wt 2.5000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p16 20.97231 22.37768 23.70911
## ------------------------------
##
## Profile 17
## wt 2.6000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p17 20.7746 22.05058 23.28701
## -----------------------------
##
## Profile 18
## wt 2.7000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p18 20.52964 21.72688 22.85165
## ------------------------------
##
## Profile 19
## wt 2.8000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p19 20.28925 21.39723 22.47464
## ------------------------------
##
## Profile 20
## wt 2.9000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p20 20.05057 21.073 22.08008
## ----------------------------
##
## Profile 21
## wt 3.0000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p21 19.82939 20.75982 21.69294
## ------------------------------
##
## Profile 22
## wt 3.1000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p22 19.56566 20.43113 21.34956
## ------------------------------
##
## Profile 23
## wt 3.2000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p23 19.29238 20.11164 21.02174
## ------------------------------
##
## Profile 24
## wt 3.3000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p24 18.95825 19.79645 20.70684
## ------------------------------
##
## Profile 25
## wt 3.4000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p25 18.59376 19.46394 20.41714
## ------------------------------
##
## Profile 26
## wt 3.5000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p26 18.23142 19.13958 20.12785
## ------------------------------
##
## Profile 27
## wt 3.6000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p27 17.82484 18.81458 19.87915
## ------------------------------
##
## Profile 28
## wt 3.7000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p28 17.41786 18.50388 19.66675
## ------------------------------
##
## Profile 29
## wt 3.8000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p29 17.01521 18.20261 19.39764
## ------------------------------
##
## Profile 30
## wt 3.9000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p30 16.58971 17.8926 19.18601
## -----------------------------
##
## Profile 31
## wt 4.0000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p31 16.16734 17.59022 18.97569
## ------------------------------
##
## Profile 32
## wt 4.1000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p32 15.74903 17.2723 18.78754
## -----------------------------
##
## Profile 33
## wt 4.2000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p33 15.29768 16.94873 18.56265
## ------------------------------
##
## Profile 34
## wt 4.3000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p34 14.84685 16.63419 18.37091
## ------------------------------
##
## Profile 35
## wt 4.4000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p35 14.40986 16.33459 18.16579
## ------------------------------
##
## Profile 36
## wt 4.5000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p36 13.95177 16.01255 17.97091
## ------------------------------
##
## Profile 37
## wt 4.6000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p37 13.48912 15.69287 17.78797
## ------------------------------
##
## Profile 38
## wt 4.7000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p38 13.02893 15.37186 17.59978
## ------------------------------
##
## Profile 39
## wt 4.8000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p39 12.57369 15.06381 17.41641
## ------------------------------
##
## Profile 40
## wt 4.9000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p40 12.11457 14.74465 17.22233
## ------------------------------
##
## Profile 41
## wt 5.0000
## cyl 6.1875
##
## 2.5% 50% 97.5%
## p41 11.65522 14.41329 17.03142
## ------------------------------