Skip to content

Commit

Permalink
Merge pull request #46 from biometryhub/dev
Browse files Browse the repository at this point in the history
Merging dev into main
  • Loading branch information
rogerssam committed Oct 27, 2022
2 parents 987f8d2 + 9d9da21 commit bb437ef
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.1.1
Date: 2022-10-26 01:28:34 UTC
SHA: 42ae12787fb62f4ad72217cdaf6053bacd9507c4
Date: 2022-10-27 10:44:28 UTC
SHA: 4929289d7c537d15a20641dd846608ce65c705c9
8 changes: 7 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ Authors@R:
Description: Provides functions to aid in the design and analysis of
agronomic and agricultural experiments through easy access to
documentation and helper functions, especially for users who are
learning these concepts.
learning these concepts. While not required for most functionality,
this package enhances the `asreml` package which provides a
computationally efficient algorithm for fitting mixed models
using Residual Maximum Likelihood. It is a commercial package
that can be purchased as 'asreml-R' from 'VSNi'
<https://vsni.co.uk/>, who will supply a zip file for local
installation/updating (see <https://asreml.kb.vsni.co.uk/>).
License: MIT + file LICENSE
URL: https://biometryhub.github.io/biometryassist/
BugReports: https://github.com/biometryhub/biometryassist/issues
Expand Down
2 changes: 1 addition & 1 deletion R/mct.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#'
#' @return A list containing a data frame with predicted means, standard errors, confidence interval upper and lower bounds, and significant group allocations (named `predicted_values`), as well as a plot visually displaying the predicted values (named `predicted_plot`). If some of the predicted values are aliased, a warning is printed, and the aliased treatment levels are returned in the output (named `aliased`).
#'
#' @references Jørgensen, E. & Pedersen, A. R. How to Obtain Those Nasty Standard Errors From Transformed Data - and Why They Should Not Be Used.
#' @references Jørgensen, E. & Pedersen, A. R. (1997). How to Obtain Those Nasty Standard Errors From Transformed Data - and Why They Should Not Be Used. [<https://pure.au.dk/portal/en/publications/how-to-obtain-those-nasty-standard-errors-from-transformed-data--and-why-they-should-not-be-used(d649ca20-d15f-11db-8e26-000ea68e967b).html>](https://pure.au.dk/portal/en/publications/how-to-obtain-those-nasty-standard-errors-from-transformed-data--and-why-they-should-not-be-used(d649ca20-d15f-11db-8e26-000ea68e967b).html)
#'
#' @examples
#' # Fit aov model
Expand Down
14 changes: 8 additions & 6 deletions R/variogram.r
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,13 @@ vario_df <- function(model.obj, Row = NA, Column = NA) {
row <- Row[val_index] + offset[1]
col <- Column[val_index] + offset[2]

if (0 < row && row <= nrows && 0 < col && col <= ncols) {
other <- ifelse(!is.na(Resid[Row == row & Column == col]),
Resid[Row == row & Column == col],
0)
gamma <- gamma + (Resid[val_index]-other)^2
np <- np + 1
if (0 < row && row <= nrows && 0 < col && col <= ncols && !is.na(Resid[val_index])) {
other <- Resid[Row == row & Column == col]

if (!is.na(other)) {
gamma <- gamma + (Resid[val_index] - other)^2
np <- np + 1
}
}
}
}
Expand All @@ -217,6 +218,7 @@ vario_df <- function(model.obj, Row = NA, Column = NA) {
gammas[index] <- gamma
nps[index] <- np
}
nps[1] <- nps[1]-sum(is.na(Resid))
vario <- cbind(vario, data.frame(gamma = gammas, np = nps))
colnames(vario) <- c(dims, "gamma", "np")
class(vario) <- c("variogram", "data.frame")
Expand Down
8 changes: 8 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## Resubmission
This is a resubmission. In this version I have:

* Explained in the DESCRIPTION where the enhanced package asreml can be obtained.

* I have also added a URL to the reference in the `multiple_comparisons()` function documentation.


## Test environments
* Local Windows 10 install, R 4.2.1
* Ubuntu 22.04 (Virtual Machine), R 4.2.1
Expand Down
2 changes: 1 addition & 1 deletion man/biometryassist.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/multiple_comparisons.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb437ef

Please sign in to comment.