panel data not demeaning

Please I have a data like this in a panel form and would like to demean it in blocks as in the panel for each day. How do i go about it?
A DAY1 2
A DAY1 4
A DAY1 7
A DAY2 6
A DAY2 4
A DAY2 9
B DAY1 1
B DAY1 0.2
B DAY1 0.8
B DAY2 7
B DAY2 5
B DAY2 6

7 comentarios

Image Analyst
Image Analyst el 19 de Sept. de 2020
What is "panel form"? What does "demean" mean to you?
What (how many and what class/type) variables would you like as an output and what should they contain?
Definition of demean
: to lower in character, status, or reputation
  1. careful not to demean his opponent
  2. demeaning the seriousness of the problem
Kwasi Boateng
Kwasi Boateng el 19 de Sept. de 2020
To detrend the data
Image Analyst
Image Analyst el 19 de Sept. de 2020
OK. And for the other two questions? 🤔
Kwasi Boateng
Kwasi Boateng el 19 de Sept. de 2020
I was using this function to detrend, Data-repmat(mean(Data), length(Data),1). But is not detrending on daily basis, I want the output to be an array
Kwasi Boateng
Kwasi Boateng el 19 de Sept. de 2020
It’s a panel data. But the output should be an array or a column matrix.
Image Analyst
Image Analyst el 19 de Sept. de 2020
OK we're progressing, but very very slowly. Do you mean like a consumer panel where you ask people what they think about something, or you make measurements off the panelists, like their weight loss or something?
OK, Please complete this line, pretending that you have the output you want from your given example:
output = [.....what???????]
Kwasi Boateng
Kwasi Boateng el 19 de Sept. de 2020
I want to compute the mean for each set of days and deduct it from the respective entries. Want the output to be like a matrix.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 19 de Sept. de 2020

Comentada:

el 19 de Sept. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by