Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
85 views

I am trying to test for vocal differences between 5 individuals with sample sizes 102, 86, 115, 45, 12. My initial plan was to use PERMANOVA, but I am concerned about the sample size limitations and ...
a12b34 mju's user avatar
Advice
0 votes
1 replies
55 views

I am running a mixed effects cox model using coxme in R, and I cannot find any information on how to check model assumptions for this type of model. I have seen the older chats, which have recommended ...
Lene's user avatar
  • 33
1 vote
1 answer
92 views

I would like to conduct a F-test (Wilks' Lambda test, ideally) to test the equality of the slope coefficients for a single independent variable on two dependent variables. Using the mtcars dataset, ...
anoble's user avatar
  • 11
0 votes
1 answer
105 views

Roy - Bargmann stepdown tests are commonly recommended for multivariate linear models (MANOVA, MMRA) fit with lm() as: lm(cbind(y1, y2, y3, ...) ~ x1 + x2 + x3 + ...) But I can't find any ...
user101089's user avatar
  • 4,083
1 vote
1 answer
62 views

I want to fit a lmtree where the response is multivariable. You know that you can fit a Multivariate Multiple Regression using lm function as follows: lm(cbind(Y1, Y2) ~ X1+X2+X3, data = my_df) so I ...
Nicolas Molano's user avatar
1 vote
1 answer
72 views

I have a simple multivariate regression model testing the impact of two variables on another over one year (1971). I have a large data set that includes these data over a number of years and am being ...
jonathanl86's user avatar
1 vote
1 answer
193 views

I'm trying to optimize a function based on discrete data sets I got in the lab. Spectrum_1 and Spectrum_2 are experimental data sets with length N. Those two arrays contain values taken for each ...
Yannick's user avatar
  • 892
0 votes
0 answers
44 views

i want to create a vector that have 'q0' rows and 1 column with N repetitions. My minimum working example is: library(Matrix) library(psych) library(MASS) set.seed(10) N0 <- 2 n0 <- 5 p0 <- ...
hamna ehsan's user avatar
0 votes
1 answer
669 views

I want to make a multivariate linear mixed model with the variables slope_reactivity, peak_reactivity, and slope_recovery as dependent variables and normalized_CTseverity, gender, age_years and ...
Roos Eijgenraam's user avatar
2 votes
1 answer
52 views

Minimum Working example: library(Matrix) library(psych) library(MASS) set.seed(10) N0 <- 1 n0 <- 5 p0 <- 2 q0 <- 4 n <- n0*q0 m2 <- matrix(c(0, 0), p0, 1) s2 <- matrix(c(1, 0, 0,...
hamna ehsan's user avatar
0 votes
1 answer
88 views

Minimum Working Example: ############################################################################## set.seed(10) ############################################################################## ...
hamna ehsan's user avatar
0 votes
1 answer
203 views

I'm not well versed in R but am using the GLLVM package to assess the influence of season and water mass on plankton distribution - when I try to make the coefficient plots using coeffplot.gllvm() I ...
daragh brown's user avatar
0 votes
1 answer
80 views

My data has 6 independent variables and 5 dependent variables, and I am running stepwise multivariate linear regressions on them. My code removes any independent variables with p-values > 0.05 in ...
Doctor K's user avatar
1 vote
1 answer
256 views

I want to perform an MVRT to understand how some abiotic factors affect the cover percentage of different benthic species. So, I used the 'mvpart' package in R version 3.2.5, as it is not possible to ...
Fabio Sanches's user avatar
1 vote
1 answer
78 views

Within mvabund::traitglm() is it appropriate to use a categorical R matrix rather than continuous environmental variables? I am interested in the effect of the interaction between MHW period (before, ...
Joshua Smith's user avatar
0 votes
1 answer
247 views

I am trying to test if my three experimental factors (see example_data1.csv) affect a multivariate dataset (5 variables measured on the same experimental unit, see example_data2.csv), using the ...
NJ Oram's user avatar
-1 votes
1 answer
122 views

I used proc corr to find pearson and plot scatter with ellipses of 70% and 90%. to finde ellipses's centroid is it the mean value of variables that were use in this process? i tried proc corr in sas ...
Not AtAll's user avatar
1 vote
1 answer
1k views

I am trying to run a PERMANOVA analysis on the bray-cutis dissimilarities between my samples, but I need to nest sample days within time of day. I read that the "strata" function in adonis2 ...
Ayda L's user avatar
  • 11
0 votes
1 answer
953 views

I am new to statistical analysis and R. I have data of relative abundance (in percentage) of 5 taxa in 8 ponds. The number of samples in the 8 ponds ranges from 7 to 12 (making the design unbalanced). ...
Aston's user avatar
  • 3
0 votes
1 answer
99 views

I need help with the mult.chart function from package MSQC in R. I searched and tried to add a baseline to the chart, but I was not able to do it. Here is what I am trying to do: library(MSQC) ...
MMH's user avatar
  • 3
0 votes
0 answers
324 views

I am trying to run a multivariate regression model using statsmodels, but there appears to be no implementation of that yet, so in the meantime, what I did was to run a manova model on the data like ...
GSA's user avatar
  • 845
1 vote
1 answer
527 views

I would like to perform multivariate fit using iminuit. Everything works fine when I use two dimensions but I get an 'ValueError: too many values to unpack (expected 2)' if I use more than two ...
PitisCat's user avatar
1 vote
0 answers
551 views

So I have 50 samples, for which I have data on the chemical composition, and the spatial coordinates. With those, I created a Bray-Curtis dissimilarity matrix of the chemical similarity between ...
Laurence Jeanjean's user avatar
1 vote
0 answers
168 views

I cannot find a python package that handles Multivariate Regression, and the internet is full of people who have confused the search by interchanging "Multivariate" (many DEPENDENT variables)...
Oberon Quinn's user avatar
0 votes
2 answers
2k views

Please see my sample data below: dad <- data.frame(type = c("new", "new", "old", "new", "old", "new", "old", "old", &...
T K's user avatar
  • 415
0 votes
1 answer
795 views

I ran a distance-based RDA using capscale() in the vegan library in R and I am trying to plot my results as a custom triplot. I only want numeric or continuous explanatory variables to be plotted as ...
LeahF's user avatar
  • 13
1 vote
1 answer
455 views

QUESTION: I am building a triplot for the results of my distance-based RDA in R, library(vegan). I can get a triplot to build, but can't figure out how to make the colours of my sites different based ...
LeahF's user avatar
  • 13
5 votes
2 answers
432 views

I'm trying to make a boxplot from the WeightLoss dataset from the car package. The variables of interest are separated by month, so I made boxplots by month separately, with all the groups (Control, ...
struggling student's user avatar
0 votes
0 answers
27 views

I have a dataset that looks like this: product_name brand price_change_percentage release_year Toy X X 20 2001 Toy Y Y -12 2020 I would like to use Tensorflow to predict price_change_percentage based ...
Shawn Hunter's user avatar
1 vote
0 answers
140 views

I am using the R package mvabund to examine how environmental conditions and species traits are correlated with ecological community structure. The traitglm() function is a nice tool for this. However,...
Joshua Smith's user avatar
0 votes
0 answers
71 views

I'm new to R and I'm trying to do a PAM clustering analysis and visualize the results via t-SNE. However, I keep getting this error Error in UseMethod("mutate") : no applicable method for '...
katehasnoidea's user avatar
0 votes
0 answers
154 views

I recently conducted a survey within an IT company concering user satisfaction with a specific data management solution. There was one question about the overall satisfaction (dependend variable for ...
KingRaidi's user avatar
0 votes
2 answers
1k views

I want learn Non-matric multidimensional scale, I have these data downloaded from https://cougrstats.wordpress.com/2019/12/11/non-metric-multidimensional-scaling-nmds-in-r/ data are library(vegan) ...
Kazi's user avatar
  • 77
1 vote
1 answer
144 views

It is possible to use cbind to specify multiple outcomes for plain lm regressions as such: set.seed(11) df <- iris %>% mutate(var1 = sample(c(0L,1L), 150, replace = TRUE), var2 = ...
dcsuka's user avatar
  • 3,007
0 votes
0 answers
128 views

I feel like this is kind of an elementary question but w/all my reading in and around the subject I have yet to arrive at a conclusive answer. I'm testing an ecological (site*species) data set as part ...
Dean Bayliss's user avatar
1 vote
0 answers
559 views

I am training a Gaussian-Process model iteratively. In each iteration, a new sample is added to the training dataset (Pandas DataFrame), and the model is re-trained and evaluated. Each row of the ...
alvarella's user avatar
  • 101
0 votes
0 answers
158 views

I am trying to estimate Treatment Effects and robust standard errors after propensity score matching with two continuous outcomes following this guide: https://cran.r-project.org/web/packages/MatchIt/...
Janni's user avatar
  • 1
1 vote
1 answer
278 views

I need help showing the shape or plane that best fits these coordinates in 3D. I have already found the plane of best fit using least squares method on python. Now I want to see if there is a more ...
Jeffrey Irudayaraj's user avatar
1 vote
1 answer
85 views

I am trying to remove the outliers from various variables at the same time in my dataset but with the function used it seems that when it finds one outlier it turns the whole row into NA. That´s a ...
Charlotte Juton 's user avatar
2 votes
1 answer
158 views

I need to apply the PCA at different points of a spherical cap, but I don’t know how to build these sets of different points, I need at least 2 sets. Here is a picture with the idea of what I need. ...
Igor Oliveira's user avatar
3 votes
1 answer
643 views

When I run this glm on model_df (dput below): model <- glm(outcome_variable_data ~ ., data = model_df, family = 'binomial') lrm <- summary(model) When I print lrm, I get the error: Coefficients: ...
Ishan Mehta's user avatar
1 vote
0 answers
220 views

I would like to validate the accuracy of my Multivariate Multiple Regression model (MMR) and train. For this MMR I have used four dependent variables (y1, y2, y3, y4) and two independent variables (x1 ...
L GS's user avatar
  • 11
0 votes
1 answer
146 views

I always use a for loop to create a matrix of linear and logistic regression output, but I am having difficulty doing so with qgcomp(). If anyone has experience or advice, I would greatly appreciate ...
ehepikait's user avatar
0 votes
1 answer
3k views

I found this old stackoverflow article that essentially is exactly what I want. Algorithm to optimize multiple variables more efficiently than trial-and-error unforunately my more advanced maths are a ...
user1601716's user avatar
  • 2,023
2 votes
1 answer
489 views

For my current project I am using sklearn.cross_decomposition.CCA. In several references (such as 1, 2 and 3) it is stated that canonical loadings can be computed as correlations between variables and ...
Johannes Wiesner's user avatar
0 votes
0 answers
85 views

I'm a stats newb and was told by my professor to run a MANOVA for something I was checking out. Basically, I wanted to see if there was an interaction between ethnicity and a certain quadrant grouping ...
kathax's user avatar
  • 71
0 votes
1 answer
1k views

I ran some multivariate multiple regression models by combining the multiple dependent variables with cbind() in lm(): dv1 <- rnorm(15) dv2 <- rnorm(15) dv3 <- rnorm(15) iv1 <- rnorm(15) ...
stm's user avatar
  • 1
0 votes
0 answers
178 views

I'm trying to build a multivariate normal distribution from my multiclass problem. Lets suppose we have c*N*x data where c is number of classes (>2), N is samples number for class c and x is number ...
TheEnigmist's user avatar
  • 1,006
1 vote
1 answer
2k views

I have a question about how to compare coefficients in a multivariate regression in R. I conducted a survey in which I measured three different attitudes (scale variables). My goal is to estimate ...
SigridVT's user avatar
0 votes
0 answers
189 views

I have used PCA and Mahalanobis distance to find outliers. But in both cases, only the highest or lowest values are detected as outliers. I am looking for a way that any data point that does not ...
nothing to prove's user avatar

1
2 3 4 5 6