Questions tagged [centering]

Centering involves subtracting the overall sample mean score from the original score; standardizing does the same followed by dividing by the overall sample standard deviation.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Centering predictors in linear mixed effects and explaining three-way interactions with continuous variables [duplicate]

I am working on a Linear Mixed Effects model. All four predictors are continuous variables. Full model: ...
user avatar
  • 35
0 votes
0 answers
10 views

Centering in 2 level Multilevel modeling

When two level-1 variables interact with each other, some articles recommend using cluster mean centering, rather than the grand mean centering. However, I do not understand why I should not use grand ...
user avatar
  • 109
0 votes
0 answers
9 views

centering issue in the multilevel modeling

I learned that categorical variable should be centered just like continuous variable. I am analyzing two level model, (MLM). case 1. when the categorical variable is level 1 predictor, and have ...
user avatar
  • 109
0 votes
0 answers
30 views

Subject-specific predictor centering based on observed value of dependent variable

In a study on human movement mechanics, my variables are 1) an indicator of performance, and 2) a vector describing one's average body configuration. Hundreds of observations are recorded for each ...
user avatar
  • 1
0 votes
0 answers
29 views

Mahalanobis vs centering / standard deviations

Is there a difference whether to use a Mahalanobis distance or transform the data via centering (and normalization) when you are interested in calculating distances? This means, if you are interested ...
user avatar
  • 2,197
0 votes
0 answers
50 views

Understanding centralization and normalization

I have the following task where I am given an audio signal: Center the signal (subtract the mean value) and normalize to a dynamic range of -1 to 1 (divide be maximum of the absolute value). If I ...
user avatar
  • 1
0 votes
0 answers
20 views

Should I center and standarize in a PCA of relative growth?

Im quite familiar with PCA, but as a non-pure-statician I have come here to ask for help and comments. I have a dataset with multiple meassures (End and initial for a lot of meassures), and the time ...
user avatar
0 votes
0 answers
100 views

What does it mean if we use eigenvetor matrix of centered matrix $\mathbf{X}$ to reduce the dimension of $\mathbf{X}$ without centering?

Recently, I was trying to use PCA to reduce the dimension of matrix $\mathbf{X}$. Suppose a data matrix $\mathbf{X}\in \mathbb{C}^{M\times N}$, where $M$ is the number of variables and $N$ is the ...
user avatar
  • 1
0 votes
0 answers
41 views

"Group mean centering" a dummy Variable in R for multilevel analysis: how can i do this?

have somebody an idea of how to group mean center a dummy Level 1 predictor in R? Enders & Tofighi (2007) describe a method to center a dummy variable through substracting the proportion of the ...
user avatar
  • 1
0 votes
0 answers
24 views

PCA whitening and centering in inference/test samples

[cross-posted from SO] I'm working on speaker identification. I need to take the speaker embeddings from a neural network and apply a few transformations to finally generate the score for verification....
user avatar
0 votes
0 answers
65 views

Centering the Mediator in Multilevel Mediation

I want to run a parallel mediation analysis with lavaan. My data is nested, so I implement two levels. The mediation is on one level (1-1-1). Because of the nested data, I want to use the group-mean-...
user avatar
  • 1
3 votes
1 answer
83 views

How does group mean centering affect the interpretation of coefficients in a hierarchical model?

I've dived deeply into the literature, but still don't understand if it's necessary to group-mean center my predictors if I'm entering them into a hierarchical model. Surely, if they're being entered ...
user avatar
0 votes
0 answers
15 views

original mean from centered array

Given the mean-centered array a <- c(-2.25,0.75,-1.25,2.75,-0.25,1.75,-0.25,-1.25) is it possible to retrieve the mean of the original array used to center it ...
user avatar
  • 905
0 votes
0 answers
7 views

center continuous predictor such that intercept represents first value of predictor

Maybe a stupid question, but I would like to center a continuous predictor (having 3 levels) so that the intercept in my linear mixed effects model represents the first value of my continuous ...
user avatar
1 vote
0 answers
101 views

When is ok not to centre the data before using it in PCA?

I want to find out if it is ok not to center the data in a PCA when working with stock returns. Centering would remove the trend from the dataset which I believe contains valuable information. The ...
user avatar
  • 11
0 votes
0 answers
17 views

Multiple regression variable centering when model building, to model input variables or both?

I am working with GLS linear models. I have a transformed dependent variable (log) and 2-3 independent variables. Now I am aware of the basic ideas surround scaling and/or centering variables. I am ...
user avatar
0 votes
0 answers
14 views

Can I GROUPMEAN center one variable and not the second one involved in an interaction / Multilevel Model with L1 Moderation

I'm fitting a multilevel model with an L1 moderation on Mplus. I am trying to demonstrate that the effect of X (independent variable / mean of scale items) on Y holds only when people do not make a ...
user avatar
  • 21
1 vote
0 answers
50 views

Cosine similarity with recentering - collaborative filtering

I don’t know much about stats (nor maths), so I’m sorry if I’m not being very clear on this... I’m trying to build a simple recommender system for books using collaborative filtering item by item. I’...
user avatar
1 vote
0 answers
14 views

Problems with 0s when centering a dummy variable within cluster

Supposing that I have a set of data that is structured like this: customerID orderID couponUse purchaseQuantity 1 1a 1 3 1 1b 0 1 1 1c 0 1 2 2a 1 5 2 2b 1 2 3 3a 1 6 3 3b 1 3 3 3c 1 7 3 3d 1 ...
user avatar
1 vote
1 answer
73 views

Centring in three levels multilevel models with cross-level interaction

I am relatively new to multi-level models subject and find it challenging to connect theory to modelling. My interest is to examine the moderation influence of green space (at level 3) on the ...
user avatar
1 vote
0 answers
266 views

Linear Mixed Effects - degenerate Hessian with 1 negative eigenvalue

I am using linear mixed effects to look at how the variable Neuro (measured at baseline only) predicts change over time in the variable Score (measured at baseline, visit 2 and for some participants ...
user avatar
0 votes
0 answers
56 views

Group centering for interactions with within-between mixed panel model

I need to update a model to incorporate an interaction between a time-invariant categorical variable and a demeaned time-variant variable. I'm unsure about how to correctly use group-mean centering ...
user avatar
  • 130
4 votes
1 answer
119 views

Why does centering variable A influence my p values of factor B in the linear mixed effects model?

I have a dataset, where I would like to see whether there is a group difference in the measurement "concentration". I have repeated measurements for some subjects, which is why I use a mixed-...
user avatar
  • 169
1 vote
0 answers
22 views

Whats the motivation to demean variables when estimating an interaction effect? [duplicate]

I am trying to estimate a regression model where I am interested in the effect of a certain magnitude, probability and expected value (probability * magnitude ) on reaction times. I was told that it ...
user avatar
  • 179
5 votes
1 answer
447 views

Mean-centering variables in glmer

I have the following model in r that compares the differences between dives where whales fed and dives where whales didn't fed (distribution is binomial: presence of feeding (foraging) = 1, abscence = ...
user avatar
1 vote
0 answers
70 views

Why does centering NOT cure multicollinearity?

In several posts, such as Is centering a valid solution for multicollinearity?, it states that centering doesn't solve multicollinearity because "it's a linear transformation." I just made ...
user avatar
2 votes
1 answer
133 views

Applying de-standardised ridge regression coefficients to new test data - how to best handle the mean of y_test?

this is my first post on Stackexchange, so please correct me in any way if I am doing it wrongly. I just stumbled across this question, I was battling with the same issue, but the posts there ...
user avatar
1 vote
0 answers
40 views

Interpreting repeated-measures oneway ANCOVA

I have a question on how to run a repeated-measures oneway ANCOVA. I have only one within-subjects factor (time) and I am interested in how a construct changes from T1 to T2. I would also like to add ...
user avatar
  • 11
0 votes
1 answer
35 views

Should we center a Season Variable for regression?

Suppose that we have the following model $Y = b_{0}+b_{1}*Season +b_{2}*Income$ In order for $b_{0}$ to refer to the expected value of $Y$, we should center the variables Season and Income. However,...
user avatar
  • 1,679
0 votes
2 answers
184 views

Do I use the mean vector from my training set to center my testing set when dimension reducing for classification?

Please let me know if this is the right place to ask this (or if any of my tags are wrong) or if I need to write this any differently. Do I use the mean vector from my training set to center my ...
user avatar
  • 103
2 votes
1 answer
35 views

How to center level-2 variables in unbalanced two-level models?

Let's say I have a sample of 200 students and they are clustered in 10 different classrooms. However, the sample is unbalanced such that some schools have more than 20 students and others have fewer ...
user avatar
9 votes
2 answers
1k views

p-values change after mean centering with interaction terms. How to test for significance?

I assumed the following interaction model: $$y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + \beta_4 x_2 x_3$$ And then applied mean centering: $$y = \beta_0 + \beta_1(x_1 - \bar{x_1}) + \...
user avatar
  • 891
1 vote
0 answers
118 views

How does centering affects the interpretation of the marginal effects?

I am trying to understand how centering continuous variables in a linear regression that includes an interaction term between two continuous variables, affect the interpretation of marginal effects. ...
user avatar
  • 11
0 votes
1 answer
471 views

Within-subject centering of a repeatedly measured dichotomous variable in a multilevel model?

I'm currently working on a nested data set consisting of 100 subjects which answered several questions at home on five consecutive days (ecological momentary assessment). Among them, they were asked ...
user avatar
0 votes
0 answers
41 views

To center or not to center? [duplicate]

I am using a linear regression model to determine the effect of diet score at baseline as predictor of weight at follow up where: lm(weight_followup ~ Diet_Score*weight_base) When I center my ...
user avatar
2 votes
1 answer
103 views

Should grand-mean centering happen in long or wide dataset?

This seems like a simple question but I've been having a hard time finding an answer. In a long daily diary dataset where each day has a row, the person mean for a given level-1 variable is repeated ...
user avatar
  • 628
1 vote
0 answers
49 views

Disaggregating between/within person variance for categorical level 1 variables?

I'm working with daily diary data that include a categorical variable indicating which of 4 possible events happened that day. I dummy-coded this variable and entered it into my multilevel model. ...
user avatar
  • 628
0 votes
0 answers
792 views

Mediation and centering

I am running a mediation model with 2 interaction terms (gender x happiness and gender x hours spent working per week) and one dependent term (income). I am wondering if I should mean center these ...
user avatar
  • 51
5 votes
1 answer
4k views

Mean centering interaction terms

I want to mean center my interaction terms in a regression model (i.e., make the mean zero for each variable). I understand that I am supposed to mean center my variables first and then multiply them ...
user avatar
  • 51
0 votes
0 answers
48 views

Centering variables in multidimensional data

Assume you have a panel data set, that means for each car (CAR), with several individuals (IDs), the dependent variable is given as the power (POWER) created by an engine, over time (time). Further ...
user avatar
  • 269
2 votes
2 answers
895 views

In linear regression, what would it do to center the label?

In this question linked below, it was addressed why we would center the features in linear regression. When conducting multiple regression, when should you center your predictor variables & when ...
user avatar
4 votes
1 answer
289 views

Need to center continuous variables in GAMs?

This is just a quick question, but I remember reading somewhere that continuous variables used in splines for generalized additive models ought to be centered (especially for GAMs rather than just as ...
user avatar
  • 215
2 votes
1 answer
92 views

Centering input data for Robust PCA (RPCA)?

I know that before running Principal component analys, the input data needs to be centered around its mean (subtract the mean from each keypoint) before running the algorithm. Do I need to center my ...
user avatar
  • 121
1 vote
0 answers
31 views

Does centering really help interpret the intercept? [duplicate]

Various people have advocated centering independent variables in regression, on the grounds that the intercept then refers to a sensible point (the mean of each IV) rather than the often impossible ...
user avatar
  • 94.5k
1 vote
0 answers
114 views

Within-person centering the outcome variable?

What do you think of within-person centering the outcome variable? If my research questions is clearly about within-person effects (in a longitudinal multilevel model), can I just use the centered ...
user avatar
  • 21
4 votes
1 answer
542 views

Centering in longitudinal linear mixed modeling - center by participant mean, timepoint mean, or participant by time grand mean?

EDIT: I was incorrectly looking to center my outcome variables. Only center predictors, and decide on group mean or grand mean centering by how you want to interpret your intercept. I have 150 ...
user avatar
1 vote
1 answer
371 views

Grand-mean centering in GLMM changes estimates for variance (and everything else)?

I know that when running a linear mixed effects model, centering around the grand mean should change the estimates for the coefficients, but not the estimate for the variance. For example, I have ...
user avatar
  • 67
3 votes
1 answer
175 views

symbol for mean centering

I am struggling to write up an equation in the manuscript of a scientific paper, where two of the terms are mean centered around the group mean. In addition, the mean centering is done with excluding ...
1 vote
1 answer
911 views

Penalize the intercept in lasso (L1) penalized logistic regression or not?

In logistic regression: $log(\frac{p(x)}{1-p(x)}) = \beta_0 + \beta_1x$, let $x' = \frac{x-\bar{x}}{\sigma_x}$, then in terms of the centered and scaled varaible $x'$ , $$ log(\frac{p(x')}{1-p(x')}) ...
user avatar
  • 419
4 votes
1 answer
679 views

How can centering predictor variables reduce correlation between them?

In Statistical Rethinking by Richard McElreath on pg. 320 he states “centering predictors can aid in inference, by reducing correlations among parameters”. For a linear equation with an interaction ...
user avatar
  • 77