Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ridsonap committed Jan 25, 2024
1 parent 360fb82 commit 82ca140
Show file tree
Hide file tree
Showing 12 changed files with 305 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
^\.Rproj\.user$
^README\.Rmd$
^\.github$
^LICENSE\.md$
13 changes: 12 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ Author: Who wrote it
Maintainer: The package maintainer <yourself@somewhere.net>
Description: More about what it does (maybe more than one line)
Use four spaces when indenting paragraphs within the Description.
License: What license is it under?
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Imports:
cli,
dplyr,
ggplot2,
methods,
rlang,
stats,
tidyr
Depends:
R (>= 2.10)
RoxygenNote: 7.2.0
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
YEAR: 2024
COPYRIGHT HOLDER: saens authors
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2024 saens authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
39 changes: 39 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#' @title mys: mean years of schooling people with disabilities in Papua Island, Indonesia.
#' @description A dataset containing the mean years of schooling people with disabilities in Papua Island, Indonesia in 2021.
#' @format
#' A data frame with 42 rows and 7 variables with 10 domains are non-sampled areas.
#'
#' \describe{
#' \item{area}{regency municipality}
#' \item{y}{mean years of schooling people with disabilities}
#' \item{var}{variance sampling from the direct estimator for each area}
#' \item{rse}{relative standard error (\%)}
#' \item{x1}{Number of Elementary Schools}
#' \item{x2}{Number of Junior High Schools}
#' \item{x3}{Number of Senior High Schools}
#' \item{clust}{Cluster}
#' }
#' @source \url{https://www.bps.go.id}
"mys"

#' @title milk: Data on fresh milk expenditure.
#' @description Data on fresh milk expenditure, used by Arora and Lahiri (1997) and by You and Chapman (2006).
#' @format
#' A data frame with 43 observations on the following 6 variables.
#'
#' \describe{
#' \item{SmallArea}{areas of inferential interest.}
#' \item{ni}{sample sizes of small areas.}
#' \item{yi}{average expenditure on fresh milk for the year 1989 (direct estimates for the small areas).}
#' \item{SD}{estimated standard deviations of yi.}
#' \item{var}{variance sampling from the direct estimator (yi) for each area}
#' \item{CV}{estimated coefficients of variation of yi.}
#' \item{MajorArea}{major areas created by You and Chapman (2006). These areas have similar direct estimates and produce a large CV reduction when using a FH model.}
#' }
#'
#' @references
#' \enumerate{
#' \item Arora, V. and Lahiri, P. (1997). On the superiority of the Bayesian method over the BLUP in small area estimation problems. Statistica Sinica 7, 1053-1063.
#' \item You, Y. and Chapman, B. (2006). Small area estimation using area level models and estimated sampling variances. Survey Methodology 32, 97-103.
#' }
"milk"
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ knitr::opts_chunk$set(

<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/saens)](https://CRAN.R-project.org/package=saens)
[![R-CMD-check](https://github.com/Alfrzlp/sae-ns/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Alfrzlp/sae-ns/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->


Binary file added data/milk.rda
Binary file not shown.
Binary file added data/mys.rda
Binary file not shown.
82 changes: 82 additions & 0 deletions man/eblupfh.Rd

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

85 changes: 85 additions & 0 deletions man/eblupfh_cluster.Rd

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

32 changes: 32 additions & 0 deletions man/milk.Rd

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

30 changes: 30 additions & 0 deletions man/mys.Rd

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

0 comments on commit 82ca140

Please sign in to comment.