GithubHelp home page GithubHelp logo

manuelreif / svypvpack Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 71 KB

This package deals with data from survey designs including plausible values.

License: GNU General Public License v2.0

R 100.00%

svypvpack's People

Contributors

manuelreif avatar nachti avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bia15

svypvpack's Issues

svyPVlevel() doesn't preserve order of levels

Levels of a factor describing proficiency levels in a data frame returned by svyPVlevel() has levels sorted alphabetically. See:

data(svy_example1)
erg_l <- svyPVlevel(by = ~ sex,
                    svydat=svy.exrep, 
                    pvs=c("plaus1","plaus2","plaus3"),
                    CATDEF=c(0,310,322,400),
                    levlab = c("c", "b", "a"),
                    colN = TRUE)
levels(erg_l$levels)

It will be better if this levels were ordered in the same way as they appear levlab argument to svyPVlevel().

svyPVpm() names column differently if only one group is analyzed

Columns being named Proportion and SE.Proportion if there are many groups defined by by are named Percent and SE.Percent if there is only one group. See:

data(svy_example1)
svyPVpm(by = ~sex,
        svydat = svy.exrep,
        pvs = c("plaus1","plaus2","plaus3"))
svyPVpm(by = ~sex,
        svydat = subset(svy.exrep, sex == "m"),
        pvs = c("plaus1","plaus2","plaus3"))

SE estimates with only one variable provided with pvs argument

This package is very useful however it will be even better if it can be used to analyze also variables that aren't PVs. Simply performing analysis on large scale assessment data typically involves dealing with regular variables along with dealing with PVs and it would be very convenient to have one tool that you can use for both of these (with most important thing is getting results in the same format).
Now with only one variable specified with pvs argument to svyPVpack function point estimates are obtained but standard errors estimates are set to NAs. I assume that's because measurement error can't be computed in such a case so its value is set to NA and this propagates while summing with sampling error.

Can you modify package in such a way, that with only one variable specified with pvs argument standard errors being computed taking into account solely sampling error? (perhaps with some message printed about such a behavior)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.