Guest guest Posted August 25, 2010 Report Posted August 25, 2010 Hello, That was a very clear and simplified explaination of data cleaning. I have attended one workshop arranged for the specific purpose of data cleaning, where the data collectors were called to explain some finer details about the processing and entry of the collected data. It was found that the interpretation of one of the varaiables was not the same by all data collectors.Hence some widely diffeering entries were observed. The data processing office could locate the mistake and the error was corrected by arranging this workshop. This goes to show how important it is to clean the data. About your method of writing or reading a paper I would say data collection should be immediately followed by data processing and analysis and for achieving good results, i have learnt that dummy tables are prepared at the time of planning of the research study so that you collect what is required and nothing that is not necessary. kunda From: Arin Basu <arin.basu@...>netrum Sent: Tue, 24 August, 2010 7:43:26 PMSubject: Data analysis, and drawing conclusions part one Data Analysis and inferencePart IIn today's discussion I'd like to recapitulate some points that we have already discussed in this discussion group about hypothesis testing, and would like to introduce concepts of data cleaning. We end today's discussion (this part) with a provocative question.So, first things first.Research that investigates whether a drug X is better than placebo or another usual treatment (say U) usually compares like individuals who are administered two different types of treatment and then study outcomes in each group. The outcomes are then compared. In order to initiate the study, the investigators set up alternative hypotheses. One hypothesis is labelled as null hypothesis that states that there is no difference in the outcome (or both the novel treatment and the placebo or the usual treatment) is same. Challenging this hypothesis is the alternative hypothesis that states that the new treatment produces better outcomes compared to placebo or the usual treatment or another treatment. Aim of the study will be to reject the null hypothesis; however, the investigator must always maintain an equipoise throughout the research. Therefore, even though an aim of a research is to reject the null hypothesis, the investigator acknowledges that the investigator can be mistaken. At the outset, the investigator states that at most the investigator can falsely reject the null hypothesis in alpha percentage of studies. By convention, the value of alpha is fixed at 5%, however, other values are also possible. Alpha is also known as Type I error. This is fixed before the study commences.After the study commences, the investigator goes about collecting data from participants. In the context of a clinical trial such as a randomized controlled trial, the trialist divides the participants into those receiving the treatment and those who receive the placebo or the usual treatment and follow through in time to observe the emergence of outcomes and measure them. The investigator then compares the outcomes between the two groups. The investigator then measures using a set of statistical procedures as to what is the probability that the study findings are consistent with the null hypothesis. This probability is known as the p-value. If the p value is sufficiently low (ie less than 5% by convention), the null hypothesis is rejected in favour of the alternative hypothesis. Otherwise, the null holds.Anyway, immediately after completion of data collection, analysis of the data begins. There are a couple of things to do with the collected data:1) The data are stored in the form of one or several databases that are linked to each other, or in the form of spreadsheets ready for analysis.2) The first step in any data analysis involves cleaning of the data. By "cleaning" of data (also often known as "preprocessing" of data) is meant a) dealing with missing values and dealing with outliers. Missing values are values on specific variables that arer either unrecorded, or unmeasured, or unmeasurable in the context of research. For example, in a study on dietary interventions and diabetes controls, let's say the investigators forgot to measure dietary intakes of some variables for some participants but did not enter or measure data for others. For all participants for whom the investigator or the researcher forgot or did not measure their crucial data points will be deemed as missing data. There are two ways generally to deal with missing data: (a) either remove these data points altogether or ( substitute values in place of missing data using data points from other observations. This technique is known as imputation. Outilers are a little more tricky to detect. Usually outliers are defined as extreme values, either too low or too high. How low is too low and how high is too high to be considered as an outlier. Outliers are commonly problematic with "continuous" variables (explained in the next section). If the variable under study is a "continuous" variable, one can detect outliers by constructing a five number summary. Such a summary includes the following: (1) the lowest value, (2) the first quartile, (3) the median, (4) the 75th percentile and the (5) the highest value. One can also construct a "box plot" to obtain the outliers for a particular dataset or a variable.If you detect outliers, there are several things that you can do about them. (1) You can check the original dataset and see _why_ they are outliers (perhaps there was an error in transcribing the data from paper records to electronic records, or perhaps there were some other errors that made the numbers look odd, etc...). (2) If that is not the case, then you can analyze the dataset with and without the outliers in the dataset, (3) You can convert the data from a continuous into a categorical dataset and use for example quintiles (ie, you break up the data into percentiles for example in chunks of lowest 33%, middle 33%, and highest 33% and analyze. This will remove the effects of outliers in your dataset. Once you have cleaned or preprocessed your datasets, you are ready to investigate the associations between different variables in the data and write up the results. There are three levels of analysis (univariate, bivariate, and multivariate analyses), and there are several different types of variables (outcome versus explanatory variable, and categorical versus continuous variables). We shall explore these and various other issues about data analysis in the subsequent posts. I'd like to sign off with this section with a provocative question. In a randomized controlled trial, we often see the authors present comparison between treatment and control participant groups on variables such as age, gender, socioeconomic status, and so on including their status on outcomes before intervention. Do you think it's really justified based on what we know about randomization? Some resources you may like to read about data analysis and graphics:Software: I prefer R for statistical computing, more here: http://www.r-project.orgThere is an extensive list of manuals and books around R. I like in particular the book by Maindonald to get a good grip on R software.Good general resource site for research: Socialresearchmethods, URL: http://www.socialresearchmethods.netA great site for discussions and learning about data analysis and graphics, Tufte, asktufte.com, here: http://bit.ly/R7armLater,Arin Quote
Guest guest Posted August 25, 2010 Report Posted August 25, 2010 Hi, I agree with Kunda madam on this. May be due to the fact that we have worked together for years. Yes, we found dummy tables to be very effective in desired data collection and checking that we collected only that data which was essentially required by us. These also help in not deviating to collect all the data which may be available, but is not related to the scientific enquiry. Vijay > > Hello, >  That was a very clear and simplified explaination of data cleaning. I have > attended one workshop arranged for the specific purpose of data cleaning, where > the data collectors were called to explain some finer details about the > processing and entry of the collected data. It was found that the interpretation > of one of the varaiables was not the same by all data collectors.Hence some > widely diffeering entries were observed. The data processing office could locate > the mistake and the error was corrected by arranging this workshop. This goes > to show how important it is to clean the data. > About your method of writing or reading a paper I would say data collection > should be immediately followed by data processing and analysis and for > achieving good results, i have learnt that dummy tables are prepared at the > time of planning of the research study so that you collect what is required and > nothing that is not necessary. > kunda > > > > > ________________________________ > From: Arin Basu <arin.basu@...> > netrum > Sent: Tue, 24 August, 2010 7:43:26 PM > Subject: Data analysis, and drawing conclusions part one > >  > Data Analysis and inference > Part I > > In today's discussion I'd like to recapitulate some points that we have already > discussed in this discussion group about hypothesis testing, and would like to > introduce concepts of data cleaning. We end today's discussion (this part) with > a provocative question. > > So, first things first. > > Research that investigates whether a drug X is better than placebo or another > usual treatment (say U) usually compares like individuals who are administered > two different types of treatment and then study outcomes in each group. The > outcomes are then compared. In order to initiate the study, the investigators > set up alternative hypotheses. One hypothesis is labelled as null hypothesis > that states that there is no difference in the outcome (or both the novel > treatment and the placebo or the usual treatment) is same. Challenging this > hypothesis is the alternative hypothesis that states that the new treatment > produces better outcomes compared to placebo or the usual treatment or another > treatment. Aim of the study will be to reject the null hypothesis; however, the > investigator must always maintain an equipoise throughout the research. > Therefore, even though an aim of a research is to reject the null hypothesis, > the investigator acknowledges that the investigator can be mistaken. At the > outset, the investigator states that at most the investigator can falsely reject > the null hypothesis in alpha percentage of studies. By convention, the value of > alpha is fixed at 5%, however, other values are also possible. Alpha is also > known as Type I error. This is fixed before the study commences. > > After the study commences, the investigator goes about collecting data from > participants. In the context of a clinical trial such as a randomized controlled > trial, the trialist divides the participants into those receiving the treatment > and those who receive the placebo or the usual treatment and follow through in > time to observe the emergence of outcomes and measure them. The investigator > then compares the outcomes between the two groups. The investigator then > measures using a set of statistical procedures as to what is the probability > that the study findings are consistent with the null hypothesis. This > probability is known as the p-value. If the p value is sufficiently low (ie less > than 5% by convention), the null hypothesis is rejected in favour of the > alternative hypothesis. Otherwise, the null holds. > > Anyway, immediately after completion of data collection, analysis of the data > begins. > > > There are a couple of things to do with the collected data: > 1) The data are stored in the form of one or several databases that are linked > to each other, or in the form of spreadsheets ready for analysis. > 2) The first step in any data analysis involves cleaning of the data. By > " cleaning " of data (also often known as " preprocessing " of data) is meant > > a) dealing with missing values and > dealing with outliers. > > Missing values are values on specific variables that arer either unrecorded, or > unmeasured, or unmeasurable in the context of research. For example, in a study > on dietary interventions and diabetes controls, let's say the investigators > forgot to measure dietary intakes of some variables for some participants but > did not enter or measure data for others. For all participants for whom the > investigator or the researcher forgot or did not measure their crucial data > points will be deemed as missing data. There are two ways generally to deal with > missing data: (a) either remove these data points altogether or ( substitute > values in place of missing data using data points from other observations. This > technique is known as imputation. > > > Outilers are a little more tricky to detect. Usually outliers are defined as > extreme values, either too low or too high. How low is too low and how high is > too high to be considered as an outlier. Outliers are commonly problematic with > " continuous " variables (explained in the next section). If the variable under > study is a " continuous " variable, one can detect outliers by constructing a five > number summary. Such a summary includes the following: (1) the lowest value, (2) > the first quartile, (3) the median, (4) the 75th percentile and the (5) the > highest value. One can also construct a " box plot " to obtain the outliers for a > particular dataset or a variable. > > If you detect outliers, there are several things that you can do about them. (1) > You can check the original dataset and see _why_ they are outliers (perhaps > there was an error in transcribing the data from paper records to electronic > records, or perhaps there were some other errors that made the numbers look odd, > etc...). (2) If that is not the case, then you can analyze the dataset with and > without the outliers in the dataset, (3) You can convert the data from a > continuous into a categorical dataset and use for example quintiles (ie, you > break up the data into percentiles for example in chunks of lowest 33%, middle > 33%, and highest 33% and analyze. This will remove the effects of outliers in > your dataset. > > > Once you have cleaned or preprocessed your datasets, you are ready to > investigate the associations between different variables in the data and write > up the results. There are three levels of analysis (univariate, bivariate, and > multivariate analyses), and there are several different types of variables > (outcome versus explanatory variable, and categorical versus continuous > variables). We shall explore these and various other issues about data analysis > in the subsequent posts. I'd like to sign off with this section with a > provocative question. > > > In a randomized controlled trial, we often see the authors present comparison > between treatment and control participant groups on variables such as age, > gender, socioeconomic status, and so on including their status on outcomes > before intervention. Do you think it's really justified based on what we know > about randomization? > > > Some resources you may like to read about data analysis and graphics: > > Software: I prefer R for statistical computing, more here: > http://www.r-project.org > There is an extensive list of manuals and books around R. I like in particular > the book by Maindonald to get a good grip on R software. > Good general resource site for research: Socialresearchmethods, URL: > http://www.socialresearchmethods.net > A great site for discussions and learning about data analysis and graphics, > Tufte, asktufte.com, here: http://bit.ly/R7arm > > > Later, > Arin > Quote
Guest guest Posted August 25, 2010 Report Posted August 25, 2010 You are absolutely on the dot Kunda and I completely agree with you on this. In fact dummy tables should be part of every article planning as it gives one a sense of direction. More about this later,ArinSent from my iPadOn 25/08/2010, at 9:09 PM, kunda gharpure <gharpurekunda@...> wrote: Hello, That was a very clear and simplified explaination of data cleaning. I have attended one workshop arranged for the specific purpose of data cleaning, where the data collectors were called to explain some finer details about the processing and entry of the collected data. It was found that the interpretation of one of the varaiables was not the same by all data collectors.Hence some widely diffeering entries were observed. The data processing office could locate the mistake and the error was corrected by arranging this workshop. This goes to show how important it is to clean the data. About your method of writing or reading a paper I would say data collection should be immediately followed by data processing and analysis and for achieving good results, i have learnt that dummy tables are prepared at the time of planning of the research study so that you collect what is required and nothing that is not necessary. kunda From: Arin Basu <arin.basu@...>netrum Sent: Tue, 24 August, 2010 7:43:26 PMSubject: Data analysis, and drawing conclusions part one Data Analysis and inferencePart IIn today's discussion I'd like to recapitulate some points that we have already discussed in this discussion group about hypothesis testing, and would like to introduce concepts of data cleaning. We end today's discussion (this part) with a provocative question.So, first things first.Research that investigates whether a drug X is better than placebo or another usual treatment (say U) usually compares like individuals who are administered two different types of treatment and then study outcomes in each group. The outcomes are then compared. In order to initiate the study, the investigators set up alternative hypotheses. One hypothesis is labelled as null hypothesis that states that there is no difference in the outcome (or both the novel treatment and the placebo or the usual treatment) is same. Challenging this hypothesis is the alternative hypothesis that states that the new treatment produces better outcomes compared to placebo or the usual treatment or another treatment. Aim of the study will be to reject the null hypothesis; however, the investigator must always maintain an equipoise throughout the research. Therefore, even though an aim of a research is to reject the null hypothesis, the investigator acknowledges that the investigator can be mistaken. At the outset, the investigator states that at most the investigator can falsely reject the null hypothesis in alpha percentage of studies. By convention, the value of alpha is fixed at 5%, however, other values are also possible. Alpha is also known as Type I error. This is fixed before the study commences.After the study commences, the investigator goes about collecting data from participants. In the context of a clinical trial such as a randomized controlled trial, the trialist divides the participants into those receiving the treatment and those who receive the placebo or the usual treatment and follow through in time to observe the emergence of outcomes and measure them. The investigator then compares the outcomes between the two groups. The investigator then measures using a set of statistical procedures as to what is the probability that the study findings are consistent with the null hypothesis. This probability is known as the p-value. If the p value is sufficiently low (ie less than 5% by convention), the null hypothesis is rejected in favour of the alternative hypothesis. Otherwise, the null holds.Anyway, immediately after completion of data collection, analysis of the data begins. There are a couple of things to do with the collected data:1) The data are stored in the form of one or several databases that are linked to each other, or in the form of spreadsheets ready for analysis.2) The first step in any data analysis involves cleaning of the data. By "cleaning" of data (also often known as "preprocessing" of data) is meant a) dealing with missing values and dealing with outliers. Missing values are values on specific variables that arer either unrecorded, or unmeasured, or unmeasurable in the context of research. For example, in a study on dietary interventions and diabetes controls, let's say the investigators forgot to measure dietary intakes of some variables for some participants but did not enter or measure data for others. For all participants for whom the investigator or the researcher forgot or did not measure their crucial data points will be deemed as missing data. There are two ways generally to deal with missing data: (a) either remove these data points altogether or ( substitute values in place of missing data using data points from other observations. This technique is known as imputation. Outilers are a little more tricky to detect. Usually outliers are defined as extreme values, either too low or too high. How low is too low and how high is too high to be considered as an outlier. Outliers are commonly problematic with "continuous" variables (explained in the next section). If the variable under study is a "continuous" variable, one can detect outliers by constructing a five number summary. Such a summary includes the following: (1) the lowest value, (2) the first quartile, (3) the median, (4) the 75th percentile and the (5) the highest value. One can also construct a "box plot" to obtain the outliers for a particular dataset or a variable.If you detect outliers, there are several things that you can do about them. (1) You can check the original dataset and see _why_ they are outliers (perhaps there was an error in transcribing the data from paper records to electronic records, or perhaps there were some other errors that made the numbers look odd, etc...). (2) If that is not the case, then you can analyze the dataset with and without the outliers in the dataset, (3) You can convert the data from a continuous into a categorical dataset and use for example quintiles (ie, you break up the data into percentiles for example in chunks of lowest 33%, middle 33%, and highest 33% and analyze. This will remove the effects of outliers in your dataset. Once you have cleaned or preprocessed your datasets, you are ready to investigate the associations between different variables in the data and write up the results. There are three levels of analysis (univariate, bivariate, and multivariate analyses), and there are several different types of variables (outcome versus explanatory variable, and categorical versus continuous variables). We shall explore these and various other issues about data analysis in the subsequent posts. I'd like to sign off with this section with a provocative question. In a randomized controlled trial, we often see the authors present comparison between treatment and control participant groups on variables such as age, gender, socioeconomic status, and so on including their status on outcomes before intervention. Do you think it's really justified based on what we know about randomization? Some resources you may like to read about data analysis and graphics:Software: I prefer R for statistical computing, more here: http://www.r-project.orgThere is an extensive list of manuals and books around R. I like in particular the book by Maindonald to get a good grip on R software.Good general resource site for research: Socialresearchmethods, URL: http://www.socialresearchmethods.netA great site for discussions and learning about data analysis and graphics, Tufte, asktufte.com, here: http://bit.ly/R7armLater,Arin Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.