All Questions
Tagged with r statistics
6,252
questions
0
votes
0
answers
40
views
How to run a simulation code multiple times and generate a mean output
I wrote some code to run a simulation model- I want to run this model at least 100 times. After running 100 times, I want it to calculate a mean for the sensitivity values produced for each screen age-...
0
votes
0
answers
25
views
Giving a data set additional information
I want to give additional information to fungal_tab data set by combining it with taxa_fungi data set. I want to add all the Mycorrhiza information regardless it is ectomycorrhiza or endomycorrhiza. I ...
0
votes
0
answers
14
views
Variation in the total number of samples when performing multiple fisher exact tests [migrated]
I have dataset of 2 time points. In each time point I have to compare the counts of different components at each position (number of positions =1000). I used fisher exact test to compare if there is a ...
0
votes
0
answers
28
views
How to compare variance of distance between two treatments over time?
I am interested in understanding how my variable (distance) changes over time between two treatment groups. I now want to compare measures of variance for distance between the two treatment groups, ...
0
votes
0
answers
20
views
How do I correctly specify nesting in the sommer R package?
I accustomed to lme4 where it would be simply: (1|genotype/root_ID) but it's unclear to me looking through the documentation the appropriate way to do this in sommer.
mod1 <- mmer(Y ~ 1,
...
0
votes
0
answers
29
views
Degrees of Freedom in Emmeans
I am using the 'emmeans' package in R to compute estimated marginal means for my (liner mixed-effects) model. However, I am enountering a warning message related to the number of observations ...
0
votes
0
answers
30
views
Correlation alternatives / How to go about testing this relationship? [migrated]
I have a large set of temperature data from upstream and downstream gauges. I am trying to find the influence of dam release on downstream temperatures. To do this, I am comparing correlation between ...
0
votes
0
answers
19
views
Determining the p-value of a test statistic, which is not distributed according to a commonly known distribution under the null hypothesis [migrated]
Currently I am working in R on a project that aims to identify Dragon King events (massive outliers) in large datasets. These outliers appear for example in the city sizes in England, where London is ...
0
votes
0
answers
9
views
How to prove that the dependent variable is explained by the two independent variables (which are correlated)? [migrated]
I would like to show that the dependent variable Y is mainly explained by the two independent variables (A1 and A2). Theoretically, an increase in A1 increases Y, and an increase in A2 decreases Y. ...
0
votes
0
answers
39
views
r - Post-hoc tests for repeated measures ANOVA with aligned rank transformed(ART) data
I'm working on a 2x3 factorial design with two within-subject variables and I'd like to test for both main and interaction effects. Since the data is not normally distributed, I've performed an ...
0
votes
0
answers
10
views
Model comparison or beta coefficient of full model? [migrated]
my question is a rather theoretical one. I have to decide in advance how I want to analyze my data (I'm going with the lme4 package in R) and feel torn between doing a model comparison by creating two ...
0
votes
1
answer
33
views
Error in kruskal_test (coin) with Weighted Data: “Invalid Object Class 'IndependenceProblem’”
I am trying to perform a weighted Kruskal-Wallis test for each group in a dataset, but I keep encountering the following error:
Error in kruskal_test: Error in validObject(.Object): invalid class “...
0
votes
1
answer
26
views
Why is my NMDS plot arch/horse shoe shaped?
I have a dataset which contains monthly sampled zooplankton data. It is always for the same sampling site so not spatial, but over 10 years. I wanted to use an NMDS plot to see if the zooplankton ...
0
votes
0
answers
31
views
What is happening to r-MASS 7.3_58.4 package?
Sometime ago, on one windows computer of mine, I have installed r-MASS 7.3_58.4 package using install.packages. I write a lot of code using it. My code runs on this computer.
Today, I try to reproduce ...
-1
votes
0
answers
12
views
Statistical testing in r [migrated]
What kind of statistical testing, with a corresponding example code in R, would you use to compare the nitrate concentrations of two different locations (with both many different sub-locations), at ...