Draw Samples with the Desired Properties from a Data Set

A tool to sample data with the desired properties.Samples can be drawn by purposive sampling with determining distributional conditions, such as deviation from normality (skewness and kurtosis), and sample size in quantitative research studies. For purposive sampling, a researcher has something in mind and participants that fit the purpose of the study are included (Etikan,Musa, & Alkassim, 2015) .Purposive sampling can be useful for answering many research questions (Klar & Leeper, 2019) .


drawsample

The goal of drawsample is to take sample/s data/s with desired properties.

Installation

You can install the development version of drawsample from GitHub with:

# install.packages("devtools")
devtools::install_github("atalay-k/drawsample")

Example

This is a basic example which shows you how to solve a common problem:

library(drawsample)
data(example_data)
# First 6 rows of the example_data
head(example_data)
#> # A tibble: 6 × 3
#>      ID Score_1 Score_2
#>   <dbl>   <dbl>   <dbl>
#> 1     1      16      18
#> 2     2      23      24
#> 3     3      13      11
#> 4     4      14       8
#> 5     5      20      17
#> 6     6      20      17
# Draw a sample based on Score_1(from negatively skewed to normal)
output1 <- draw_sample(dist=example_data[,c(1,2)],n=200,skew = 0,kurts = 0,
save.output=FALSE) 

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("drawsample")

1.0.2 by Kubra Atalay Kabasakal, 9 months ago


https://github.com/atalay-k/drawsample


Report a bug at https://github.com/atalay-k/drawsample/issues


Browse source code at https://github.com/cran/drawsample


Authors: Kubra Atalay Kabasakal [aut, cre] (ORCID: , Huseyin Yıldız [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, lattice, tibble, psych, moments, readxl, shiny, shinycssloaders, shinydashboard, xlsx, utils

Suggests rmarkdown, knitr, testthat


See at CRAN