Giter VIP home page Giter VIP logo

Comments (1)

Deleetdk avatar Deleetdk commented on August 29, 2024

Could not reproduce with iris.

> iris %>% miss_add_random() %>% miss_analyze()
             Sepal.Length Sepal.Width Petal.Length Petal.Width Species
Sepal.Length           NA       0.023        -0.46       -0.41    0.31
Sepal.Width         0.050          NA         0.28        0.21    0.14
Petal.Length       -0.193       0.116           NA       -0.17    0.23
Petal.Width         0.037       0.789        -0.11          NA    0.19
Species            -0.247      -0.026        -0.25       -0.13      NA

Perhaps due to chr col?

> iris %>% miss_add_random() %>% cbind(chr = sample(c("A", "B", "C", NA), 150, T)) %>% miss_analyze()
             Sepal.Length Sepal.Width Petal.Length Petal.Width Species  chr
Sepal.Length           NA       -0.16        0.558       0.580    0.32 0.24
Sepal.Width        -0.245          NA       -0.374      -0.272    0.39 0.46
Petal.Length       -0.016        0.30           NA      -0.276    0.19 0.20
Petal.Width        -0.050       -0.43       -0.100          NA    0.07 0.27
Species             0.080       -0.10       -0.023      -0.066      NA 0.19
chr                -0.208        0.11       -0.065       0.040    0.10   NA
> iris %>% miss_add_random() %>% cbind(chr = sample(c("A", "B", "C", NA), 150, T)) %>% miss_amount()
cases with missing data  vars with missing data cells with missing data 
                   0.52                    1.00                    0.12 

Does not seem there is any error. Perhaps was fixed and I forgot to update issue. Closing for now.

from kirkegaard.

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.