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 件のコメント

Image Analyst
Image Analyst 2020 年 9 月 19 日
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 2020 年 9 月 19 日
To detrend the data
Image Analyst
Image Analyst 2020 年 9 月 19 日
OK. And for the other two questions? 🤔
Kwasi Boateng
Kwasi Boateng 2020 年 9 月 19 日
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 2020 年 9 月 19 日
It’s a panel data. But the output should be an array or a column matrix.
Image Analyst
Image Analyst 2020 年 9 月 19 日
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 2020 年 9 月 19 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMultidimensional Arrays についてさらに検索

タグ

質問済み:

2020 年 9 月 19 日

コメント済み:

2020 年 9 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by