Code Monkey home page Code Monkey logo

gofcat's People

Contributors

ejikeugba avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gofcat's Issues

Link with `nnet`

Hello,

I am still conducting tests for the JOSS review (openjournals/joss-reviews#4382).
I was testing the use of a nnet fitted model. I just took the example from the help of the function, which is a binary response model but I think it should work ?

library(nnet)
library(MASS)
example(birthwt)
bwt.mu <- multinom(low ~ ., bwt)
erroR(bwt.mu)
Rsquared(bwt.mu)

I obtain the following error:

Error: more than one column of fitted values for a binary model is not allowed

`lipsitz()` behaviour when there is a `grp`variable

Hi,
Thanks for this package, I have a question while conducting some tests for the review ( openjournals/joss-reviews#4382 ).

What does happen if you have a variable called 'grp' in the data ? I suspect some results depending on the variable, see the snippet bellow, adapted from the README.

dt <- data.frame(y = ordered(rbinom(n,2,0.5)), x1 = factor(rbinom(n,2,0.7)), x2 = runif(n))
dt$grp = dt$x1
sp <- serp(y ~ x1 +x2, slope="parallel", link = "logit", reverse= TRUE, data = dt)
sp_grp <- serp(y ~ grp +x2, slope="parallel", link = "logit", reverse= TRUE, data = dt)

#Same results
hosmerlem(sp,tables = TRUE)
hosmerlem(sp_grp,tables = TRUE)

#different results
lipsitz(sp)
lipsitz(sp_grp)

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.