diff --git a/docs/news/index.html b/docs/news/index.html index b812850..ecbe602 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -35,7 +35,9 @@

Changelog

stevemisc 1.9.0

stevemisc 1.8.0

CRAN release: 2024-08-23

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 9dd9cca..2632909 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 3.1.1 pkgdown: 2.1.1 pkgdown_sha: ~ articles: {} -last_built: 2025-01-22T18:13Z +last_built: 2025-01-30T10:31Z urls: reference: http://svmiller.com/reference article: http://svmiller.com/articles diff --git a/docs/reference/at.html b/docs/reference/at.html index f17fbe3..b6f476c 100644 --- a/docs/reference/at.html +++ b/docs/reference/at.html @@ -69,7 +69,9 @@

Usage r1sd_at(data, x, prefix = "s", na = TRUE, .by = NULL) -r2sd_at(data, x, prefix = "z", na = TRUE, .by = NULL)

+r2sd_at(data, x, prefix = "z", na = TRUE, .by = NULL) + +rewb_at(data, x, w_prefix = "w", b_prefix = "b", .by)
@@ -122,6 +124,16 @@

Argumentsw_prefix +

Applicable only to rewb_at, but specifies prefix for +so-called "within" variables created by this procedure. Defaults to "w".

+ + +
b_prefix
+

Applicable only to rewb_at, but specifies prefix for +so-called "between" variables created by this procedure. Defaults to "b".

+

Value

@@ -181,6 +193,14 @@

Detailsz_. Note the rescaling here is by two standard deviations and not one. The default prefix ("z") can be changed by way of an argument in the function.

+

rewb_at is a wrapper for routines done by mean_at, +group_mean_center_at, and center_at in this package. It +implicitly assumes the data are a panel and runs these three routines in order +to create so-called "between" and "within" variables for a "random effects, +within-between" analysis. Means are calculated based on available data, so +there is no na argument available in this function. The function will fail +in the presence of variables in the data matching those that this routine +wants to create.

All functions, except for lag_at, will fail in the absence of a character vector of a length of one. They are intended to work across multiple columns instead of just one. If you are wanting to create one new variable, diff --git a/docs/reference/index.html b/docs/reference/index.html index 7dbd361..b983bc6 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -44,7 +44,7 @@

Functionscenter_at() diff_at() group_mean_center_at() lag_at() log_at() mean_at() r1sd_at() r2sd_at() + center_at() diff_at() group_mean_center_at() lag_at() log_at() mean_at() r1sd_at() r2sd_at() rewb_at()
Scoped Helper Verbs
@@ -116,7 +116,7 @@

Functionslinloess_plot() + linloess_plot() print(<linloess>)
Compare Linear Smoother to LOESS Smoother for Your OLS Model
diff --git a/docs/reference/linloess_plot-1.png b/docs/reference/linloess_plot-1.png index 24f80f6..133a606 100644 Binary files a/docs/reference/linloess_plot-1.png and b/docs/reference/linloess_plot-1.png differ diff --git a/docs/reference/linloess_plot-2.png b/docs/reference/linloess_plot-2.png index 9078144..ae2001d 100644 Binary files a/docs/reference/linloess_plot-2.png and b/docs/reference/linloess_plot-2.png differ diff --git a/docs/reference/linloess_plot.html b/docs/reference/linloess_plot.html index 0046539..d8d2d37 100644 --- a/docs/reference/linloess_plot.html +++ b/docs/reference/linloess_plot.html @@ -69,8 +69,12 @@

Usage smoother = "loess", se = TRUE, span = 0.75, + suppress_warning = TRUE, ... -)

+) + +# S3 method for class 'linloess' +print(x, ...)
@@ -95,7 +99,8 @@

Argumentsse

logical, defaults to TRUE. If TRUE, gives standard -error estimates with the assorted smoothers.

+error estimates with the assorted smoothers. If resid is TRUE, +there is no standard error for a flat line at 0.

span
@@ -104,10 +109,18 @@

Argumentssuppress_warning +

logical, defaults to TRUE. If TRUE, +the plot suppresses assorted warnings from the LOESS smoother that would +otherwise be cautioning you about things your eyes could otherwise see.

+ +
...
-

optional parameters, passed to the scatterplot -(geom_point()) component of this function. Useful if you want to make -the smoothers more legible against the points.

+

additional arguments (ignored)

+ + +
x
+

a ggplot object with this special 'linloess' class

@@ -136,92 +149,17 @@

Author<

Examples


-M1 <- lm(mpg ~ ., data=mtcars)
+M1 <- lm(mpg ~ am + carb + disp, data=mtcars)
 
 linloess_plot(M1)
 #> `geom_smooth()` using formula = 'y ~ x'
 #> `geom_smooth()` using formula = 'y ~ x'
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
-#> Warning: pseudoinverse used at 4
-#> Warning: neighborhood radius 2
-#> Warning: reciprocal condition number  1.8444e-17
-#> Warning: pseudoinverse used at 4
-#> Warning: neighborhood radius 2
-#> Warning: reciprocal condition number  1.8444e-17
-#> Warning: pseudoinverse used at 3.98
-#> Warning: neighborhood radius 4.02
-#> Warning: reciprocal condition number  6.1406e-17
-#> Warning: There are other near singularities as well. 16.16
-#> Warning: pseudoinverse used at 3.98
-#> Warning: neighborhood radius 4.02
-#> Warning: reciprocal condition number  6.1406e-17
-#> Warning: There are other near singularities as well. 16.16
-#> Warning: pseudoinverse used at 2.99
-#> Warning: neighborhood radius 1.01
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 4.0401
-#> Warning: pseudoinverse used at 2.99
-#> Warning: neighborhood radius 1.01
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 4.0401
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
 
 linloess_plot(M1, color="black", pch=21)
 #> `geom_smooth()` using formula = 'y ~ x'
 #> `geom_smooth()` using formula = 'y ~ x'
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
-#> Warning: pseudoinverse used at 4
-#> Warning: neighborhood radius 2
-#> Warning: reciprocal condition number  1.8444e-17
-#> Warning: pseudoinverse used at 4
-#> Warning: neighborhood radius 2
-#> Warning: reciprocal condition number  1.8444e-17
-#> Warning: pseudoinverse used at 3.98
-#> Warning: neighborhood radius 4.02
-#> Warning: reciprocal condition number  6.1406e-17
-#> Warning: There are other near singularities as well. 16.16
-#> Warning: pseudoinverse used at 3.98
-#> Warning: neighborhood radius 4.02
-#> Warning: reciprocal condition number  6.1406e-17
-#> Warning: There are other near singularities as well. 16.16
-#> Warning: pseudoinverse used at 2.99
-#> Warning: neighborhood radius 1.01
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 4.0401
-#> Warning: pseudoinverse used at 2.99
-#> Warning: neighborhood radius 1.01
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 4.0401
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
-#> Warning: pseudoinverse used at -0.005
-#> Warning: neighborhood radius 1.005
-#> Warning: reciprocal condition number  0
-#> Warning: There are other near singularities as well. 1.01
 
+