# Recent content by Dason

1. ### Calculation of the probability of multiple random events

What is your reasoning for this?

No
3. ### 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?
4. ### 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.
5. ### 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...
6. ### 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...
7. ### 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...

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...
9. ### 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?

11. ### 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.
12. ### 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?
13. ### 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...
14. ### 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.
15. ### Exponential smoothing models

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