Code Monkey home page Code Monkey logo

Comments (1)

markdly avatar markdly commented on June 12, 2024

cq_show() is now flexible enough to import tables from show files when a dif analysis was requested (e.g. model: item + gender + item*gender). Added in 7994b37

Example usage:

library(conquestr)
x <- system.file("extdata", "dif.shw", package = "conquestr")
df <- cq_show(x, fit = FALSE)
df
#> # A tibble: 3 x 2
#>   term     data              
#>   <chr>    <list>            
#> 1 grp      <tibble [2 × 13]> 
#> 2 item     <tibble [20 × 13]>
#> 3 item*grp <tibble [40 × 15]>

df$data[[1]]
#> # A tibble: 2 x 13
#>   grp_index   grp    est   err uw_mnsq uw_ci_lo uw_ci_hi  uw_t  mnsq ci_lo
#>       <int> <int>  <dbl> <dbl>   <dbl>    <dbl>    <dbl> <dbl> <dbl> <dbl>
#> 1         1     1  0.258 0.019    1        0.88     1.12   0    1     0.88
#> 2         2     2 -0.258 0.019    1.04     0.88     1.12   0.7  1.04  0.88
#> # ... with 3 more variables: ci_hi <dbl>, t <dbl>, section_index <chr>

Created on 2018-09-12 by the reprex package (v0.2.0).

I think the other features such as labelling for 'favouring' etc are not really a good fit for conquestr at this stage. E.g. the 'rules' are likely to change depending on the context so I'm inclined to leave those out for now (and implement on a project basis instead). Let me know if you feel strongly otherwise though! 😄

from conquestr.

Related Issues (20)

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.