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.
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 Exchange에서 Multidimensional 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