skqert.blogg.se

Stata regress command
Stata regress command





stata regress command

If you are unsure whether your dependent variable is continuous (i.e., measured at the interval or ratio level), see our Types of Variable guide. Examples of such continuous variables include height (measured in feet and inches), temperature (measured in oC), salary (measured in US dollars), revision time (measured in hours), intelligence (measured using IQ score), reaction time (measured in milliseconds), test performance (measured from 0 to 100), sales (measured in number of transactions per month), and so forth. Assumption #1: Your dependent variable should be measured at the continuous level.However, you should decide whether your study meets these assumptions before moving on. Since assumptions #1 and #2 relate to your choice of variables, they cannot be tested for using Stata.

stata regress command

If any of these seven assumptions are not met, you cannot analyse your data using linear because you will not get a valid result. There are seven "assumptions" that underpin linear regression. However, before we introduce you to this procedure, you need to understand the different assumptions that your data must meet in order for linear regression to give you a valid result.

#Stata regress command how to#

In this guide, we show you how to carry out linear regression using Stata, as well as interpret and report the results from this test. We will refer to these as dependent and independent variables throughout this guide. Ultimately, whichever term you use, it is best to be consistent. Note: The dependent variable is also referred to as the outcome, target or criterion variable, whilst the independent variable is also referred to as the predictor, explanatory or regressor variable.

stata regress command

Alternatively, if you just wish to establish whether a linear relationship exists, you could use Pearson's correlation. If you have two or more independent variables, rather than just one, you need to use multiple regression. Alternately, you could use linear regression to understand whether cigarette consumption can be predicted based on smoking duration (i.e., your dependent variable would be "cigarette consumption", measured in terms of the number of cigarettes consumed daily, and your independent variable would be "smoking duration", measured in days). For example, you could use linear regression to understand whether exam performance can be predicted based on revision time (i.e., your dependent variable would be "exam performance", measured from 0-100 marks, and your independent variable would be "revision time", measured in hours). Linear regression, also known as simple linear regression or bivariate linear regression, is used when we want to predict the value of a dependent variable based on the value of an independent variable. Linear regression analysis using Stata Introduction







Stata regress command