Skip to content

Commit

Permalink
package check fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszChrostowski committed Dec 23, 2024
1 parent 87b0449 commit 15219d6
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 79 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Imports:
nleqslv,
doParallel,
foreach,
parallel
parallel,
formula.tools
LinkingTo:
Rcpp,
RcppArmadillo
Expand Down
13 changes: 11 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@

S3method(AIC,nonprobsvy)
S3method(BIC,nonprobsvy)
S3method(check_balance,nonprobsvy)
S3method(confint,nonprobsvy)
S3method(cooks.distance,nonprobsvy)
S3method(deviance,nonprobsvy)
S3method(hatvalues,nonprobsvy)
S3method(logLik,nonprobsvy)
S3method(nobs,nonprobsvy)
S3method(nonprobsvyby,nonprobsvy)
S3method(nonprobsvycheck,nonprobsvy)
S3method(nonprobsvymean,nonprobsvy)
S3method(nonprobsvytotal,nonprobsvy)
S3method(pop.size,nonprobsvy)
S3method(print,nonprobsvy)
S3method(print,nonprobsvy_balance)
S3method(print,nonprobsvycheck)
S3method(print,summary_nonprobsvy)
S3method(residuals,nonprobsvy)
S3method(summary,nonprobsvy)
Expand All @@ -23,6 +26,10 @@ export(controlSel)
export(genSimData)
export(logit_model_nonprobsvy)
export(nonprob)
export(nonprobsvyby)
export(nonprobsvycheck)
export(nonprobsvymean)
export(nonprobsvytotal)
export(pop.size)
export(probit_model_nonprobsvy)
import(Rcpp)
Expand Down Expand Up @@ -82,6 +89,7 @@ importFrom(stats,rexp)
importFrom(stats,rnorm)
importFrom(stats,runif)
importFrom(stats,sd)
importFrom(stats,setNames)
importFrom(stats,summary.glm)
importFrom(stats,terms)
importFrom(stats,uniroot)
Expand All @@ -90,6 +98,7 @@ importFrom(stats,var)
importFrom(stats,vcov)
importFrom(stats,weighted.mean)
importFrom(survey,as.svrepdesign)
importFrom(survey,svyby)
importFrom(survey,svymean)
importFrom(survey,svyrecvar)
importFrom(survey,svytotal)
Expand Down
6 changes: 4 additions & 2 deletions R/prints.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ print.summary_nonprobsvy <- function(x,

invisible(x)
}
#' @export
print.nonprobsvy_balance <- function(x, ...) {
#' @method print nonprobsvycheck
#' @exportS3Method
print.nonprobsvycheck <- function(x, ...) {
cat("Balance check results:\n\n")

# Create a data frame for nice printing
Expand All @@ -148,4 +149,5 @@ print.nonprobsvy_balance <- function(x, ...) {
)

print(results)
invisible(x)
}
Loading

0 comments on commit 15219d6

Please sign in to comment.