Coder Social home page Coder Social logo

tomasokal / phackr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from willdebras/phackr

0.0 0.0 0.0 196 KB

Package to produce tables of directionality and significance of ologit regressions ran across multiple dependent variables. Useful for checking significance of a battery of questions

R 100.00%

phackr's Introduction

phackr

The goal of phackr is to produce excel sheets showing multivariate significance for several dependent variables across as many covariates as specified. The function currently only supports ordered logistic regression models. The future plan for the package is to allow specification of several interchangeable covariates to output to multiple excel sheets.

Installation

You can install the development version from github with:

library(devtools)
install_github("willdebras/phackr")
library(phackr)
library(tibble)

Example

You can use the phackr_setup() function to setup a survey object

library(rio)
data <- import("full_data.dta")

survey_data <- phackr_setup(data = data, weight = "finalwt", caseid = "su_id")

Once it is setup, you can use the phackr() function to actually produce the tables.

sheet1 <- phackr(data = survey_data, 
                 dvs = c("factor(trade1a)", "factor(trade1b)", "factor(trade1c)", "factor(trade1d)", "factor(trade1e)", "factor(trade1f)", "factor(trade1g)", "factor(trade2)", "factor(trade3a)", "factor(trade3b)", "factor(trade3c)"), 
                 demos = c("urban", "marital", "agegrp", "education", "hhincome", "empstatus", "gender"))

library(knitr)
kable(sheet1)
factor(trade1a) factor(trade1b) factor(trade1c) factor(trade1d) factor(trade1e) factor(trade1f) factor(trade1g) factor(trade2) factor(trade3a) factor(trade3b) factor(trade3c)
urban - +
marital - - +
agegrp
education - + + -
hhincome -
empstatus
gender - + +

phackr's People

Contributors

willdebras avatar tomasokal avatar

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.