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 Comments

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
To detrend the data
OK. And for the other two questions? 🤔
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
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???????]
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.

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 19 Sep 2020

Commented:

on 19 Sep 2020

Community Treasure Hunt

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

Start Hunting!