Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sumunits argument back to MA estimation functions #33

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion R/modMAarea.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
#' only one domain, rowvar = domain variable. If more than one domain, include
#' colvar. If no domain, rowvar = NULL.
#' @param colvar String. Name of the column domain variable in cond or tree.
#' @param sumunits Logical. If TRUE, estimation units are summed and returned
#' in one table.
#' @param bootstrap Logical. If TRUE, returns bootstrap variance estimates,
#' otherwise uses Horvitz-Thompson estimator under simple random sampling
#' without replacement.
Expand Down Expand Up @@ -250,6 +252,7 @@ modMAarea <- function(MApopdat,
pcfilter = NULL,
rowvar = NULL,
colvar = NULL,
sumunits = FALSE,
bootstrap = FALSE,
returntitle = FALSE,
savedata = FALSE,
Expand Down Expand Up @@ -283,7 +286,6 @@ modMAarea <- function(MApopdat,
esttype="AREA"
parameters <- FALSE
returnlst <- list()
sumunits <- FALSE
rawdata <- TRUE

## Set global variables
Expand Down
2 changes: 1 addition & 1 deletion R/modMAratio.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ modMAratio <- function(MApopdat,
FIA = TRUE,
rowvar = NULL,
colvar = NULL,
sumunits = TRUE,
sumunits = FALSE,
returntitle = FALSE,
savedata = FALSE,
table_opts = NULL,
Expand Down
4 changes: 3 additions & 1 deletion R/modMAtree.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
#' @param colvar String. Optional. If rowvar != NULL, name of domain variable
#' to group estvar by for columns in table output. Colvar must be included in
#' an input data frame (i.e., plt, cond, tree).
#' @param sumunits Logical. If TRUE, estimation units are summed and returned
#' in one table.
#' @param prednames String vector. Name(s) of predictor variables to include in
#' model.
#' @param modelselect Logical. If TRUE, an elastic net regression model is fit
Expand Down Expand Up @@ -284,6 +286,7 @@ modMAtree <- function(MApopdat,
pcfilter = NULL,
rowvar = NULL,
colvar = NULL,
sumunits = FALSE,
prednames = NULL,
modelselect = FALSE,
FIA = TRUE,
Expand Down Expand Up @@ -319,7 +322,6 @@ modMAtree <- function(MApopdat,
esttype="TREE"
parameters <- FALSE
returnlst <- list()
sumunits <- FALSE

## Set global variables
ONEUNIT=n.total=n.strata=strwt=TOTAL <- NULL
Expand Down
4 changes: 4 additions & 0 deletions man/modMAarea.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/modMAratio.Rd

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

4 changes: 4 additions & 0 deletions man/modMAtree.Rd

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

Loading