This package provides a suite of RKWard plugins that create a
graphical user interface for the powerful survey
R package.
It is designed to simplify the workflow for complex survey analysis by
providing dialogs for creating survey design objects and performing a
wide range of common statistical analyses.
This package installs a new top-level menu in RKWard: Survey, which contains the following nine plugins:
survey::svydesign()
to create a svydesign
object.svymean
) or total
(svytotal
) for one or more variables.survey::svyby()
.survey::svyquantile()
.survey::svyratio()
.survey::svyglm()
.quasibinomial
family.survey::svytable()
.survey::svychisq()
.svydesign
object.A working installation of RKWard.
The R package survey
. If you do not
have it, install it from the R console:
install.packages("survey")
The R package devtools
is required
for installation from the source code.
install.packages("devtools")
To install the rk.survey.design
plugin package, you need
the source code (e.g., by downloading it from GitHub).
local({
## Preparar
require(devtools)
## Computar
install_github(
repo="AlfCano/rk.survey.design"
)## Imprimir el resultado
rk.header ("Resultados de Instalar desde git")
})
The intended workflow is to first create a design object and then use that object for analysis.
Load a sample dataset from the survey
package into
your R workspace:
library(survey)
data(api)
Navigate to Survey > Create Survey Design.
In the RKWard dialog, drag the apiclus1
data frame
from the workspace browser into the “Survey data (data.frame)”
slot.
The other slots will now be populated with the columns from
apiclus1
.
pw
for the “Weight variable”.stype
for the “Strata variable”.dnum
for the “ID/Cluster variable”.In the “Save survey design object as” field, keep the default
name survey.design
.
Click Submit.
A new object named survey.design
of class
svydesign
will be created in your workspace.
survey.design
object.survey.design
into the “Survey design object”
slot.api00
and api99
.stype
.The RKWard output window will display a formatted table showing the
mean api00
and api99
scores for each school
type (E
, H
, M
), correctly
weighted according to the survey design.
Alfonso Cano (alfonso.cano@correo.buap.mx) Assisted by Gemini, a large language model from Google.