Recent content by Dason

  1. Dason

    No

    No
  2. Dason

    How to get the odds of an event, based on its linear regression analisy?

    It's more appropriate when the thing you want to predict is binary. Although I realize now that I probably should have asked this to begin with: what variable are you trying to predict/model here?
  3. Dason

    Frequencies with many variables

    Can you give an example of what your data actually looks like. I think that would clear up some questions I have.
  4. Dason

    Function out of my package only works after being copied/pasted...Why?

    Here is the official documentation on declaring dependencies in R: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Package-Dependencies Here is a decent explanation of when to use imports/depends...
  5. Dason

    Function out of my package only works after being copied/pasted...Why?

    I think the issue is that you're relying on "Depends" to bring the packages you use in instead of Imports. This can make the Namespace a bit harder to anticipate. Using `debug` it looks like the issue is that mean(u.comp) and mean(v.comp) are returning NA inside of your function when called...
  6. Dason

    Function out of my package only works after being copied/pasted...Why?

    Oh so you mean copying the internals of the function and pasting them directly as if you were running a script? I thought you meant copying the function definition and pasting that and then that fixed it. Side note - can you make a reproducible example? And paste the code directly instead of...
  7. Dason

    Please help, which ANOVA should I use?

    Because your design doesn't have the information necessary to fit an interaction term. I'm assuming the design is still The interaction would tell us if the effect of shock level is different for the four treatments (or at least that's one way to think of it). You don't have any treatments...
  8. Dason

    How to get the odds of an event, based on its linear regression analisy?

    It's always nice to see Linux represented in the wild. So you want to use your to variables to predict the probability of male/female? Does it have to be linear regression or are you open to logistic regression?
  9. Dason

    Please help, which ANOVA should I use?

    With your design you can't say anything about the interaction.
  10. Dason

    Function out of my package only works after being copied/pasted...Why?

    And since your package is on github you could point us to the offending file as well.
  11. Dason

    Function out of my package only works after being copied/pasted...Why?

    In the future please post the actual error you're receiving. Are you sure your function is exported?
  12. Dason

    Statistic software to calculate this?

    Yeah I don't really understand the ask. The "formula" is count them up. That's language dependent. Depending on how the data is formatted you could do a decent amount of this in Excel. But it depends on the format and there is no magic program that will read your mind so you'll need to do a...
  13. Dason

    When 'not' to use MANOVA?

    Keep in mind that if you're looking at the raw data that's not what we require normality on. You want to test the residuals after you run the analysis.
  14. Dason

    Exponential smoothing models

    Well you could certainly test the averaged model against the same holdout and compare MAPE or whatever criteria you want.
  15. Dason

    SAS on Mac

    Sure. You can install SAS. But with the choice of installing R why would you want to?