Git Product home page Git Product logo

fssgam's Issues

Incorrect number of dimensions

Hi,` Becky! I think this code is fantastic, but I'm having trouble getting an output for fit.model.set because I keep getting the following error: 'Error in y_dat[, 1] : incorrect number of dimensions'.

I have tried to follow your examples for constructing the initial model and generating the model set (both of which have successfully given list outputs), but I have had no luck in getting past model fitting. If you can see where I may be going wrong, any guidance would be greatly appreciated!

##### Define Model Variables #####

cont.preds = c("Dist.km", "Depth", "Bathy", "Noise.Level") # Use as continuous predictors.
cat.preds = c("Shipping.Lane", "LightRegime") # Use as categorical predictors.
null.vars = "Transit" # Use as random effect and null model.


##### Fit model set #####

Model1 = uGamm(PresAbs ~ 1,
                 random =~ (1|Transit), 
                 data = BW, 
                 family = binomial(link = "logit"),
                 lme4 = TRUE)
  
  model.set = generate.model.set(use.dat = BW, 
                                 max.predictors = 6,
                                 test.fit = Model1,
                                 k = 3,
                                 pred.vars.cont = cont.preds,
                                 pred.vars.fact = cat.preds)
  
  out.list = fit.model.set(model.set, max.models = 720)
  names(out.list)

advice on reporting models

@beckyfisher What advice can we give on when to report a top model or not?
For example - if a model explains <10% variance should it it even be reported in a table?

Error when factor variables are included

Hi, thanks for your code. I'm trying out this method in my analysis, however an error is coming up when I specify factor variables in full.subsets.gam()

This is the error:

Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?

Seems to coming out from a sort function

The function runs if I don't specify factors.

Models fail to fit with family = nb()

There is an issue with fitting the full model set when the family nb() is used. Most models (but not all) appear to fail. Note the same issues occurs in the use of lapply

P-values of predictors?

In addition to the relative importance of predictors, is it possible to get their P-values?

Error on ### now fit the models

I'm trying to make a tutorial based on this data and can't seem to troubleshoot why I'm getting this error for the code following ### now fit the models ---------------------------------------------------------
Any assistance appreciated

Error in names(dat) <- object$term :
'names' attribute [1] must be the same length as the vector [0]

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.