background preloader

Data Analysis Examples

Data Analysis Examples
The pages below contain examples (often hypothetical) illustrating the application of different statistical analysis techniques using different statistical packages. Each page provides a handful of examples of when the analysis might be used along with sample data, an example analysis and an explanation of the output, followed by references for more information. These pages merely introduce the essence of the technique and do not provide a comprehensive description of how to use it. The combination of topics and packages reflect questions that are often asked in our statistical consulting. As such, this heavily reflects the demand from our clients at walk in consulting, not demand of readers from around the world. For grants and proposals, it is also useful to have power analyses corresponding to common data analyses. The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.

nd.edu/~rwilliam/stats3/Panel03-FixedEffects.pdf Brandon Foltz, M.Ed. This is the first video in what will be, or is (depend­ing on when you are watch­ing this) a mul­ti­part video series about Sim­ple Lin­ear Regres­sion. In the next few min­utes we will cover the basics of Sim­ple Lin­ear Regres­sion start­ing at square one. And for the record, from now on if I say "regres­sion" I am refer­ring to sim­ple lin­ear regres­sion as opposed to mul­ti­ple regres­sion or mod­els that are not linear. Regres­sion allows us to model, math­e­mat­i­cally, the rela­tion­ship between two or more vari­ables. For now, we will be work­ing with just two vari­ables; an inde­pen­dent vari­able and a depen­dent vari­able. So in this video, we are going to talk about that idea. So if you are new to Regres­sion or are still try­ing to fig­ure out exactly what it even IS…this video is for you. So sit back, relax, and let's go ahead and get to work. For my com­plete video library orga­nized by playlist, please go to my video page here:

Interpreting results of regression with interaction terms: Example - ESS EduNet Table 12 shows that adding interaction terms, and thus letting the model take account of the differences between the countries with respect to birth year effects on education length, increases the R2 value somewhat, and that the increase in the model’s fit is statistically significant. Correspondingly, the model 2 part of table 13 shows that both the Polish and the British associations between birth year and education length are significantly different from the Norwegian one at the 5% level. The estimate of the Polish regression line slope indicates that it is a notch steeper than the Norwegian (0.097 + 0.02 = 0.117 as against 0.097), while the British line seems to be less steep (0.097 – 0.037 = 0.06), which can be seen from the negative sign of the estimate of the interaction term’s coefficient. However, only the slope of the British regression line is significantly different from the Norwegian slope at the 1% level. Table 12. Table 13. COMPUTE combiweight = dweight * pweight.

Stata FAQ: How do I write my own bootstrap program? Stata FAQ How do I write my own bootstrap program? Stata has the convenient feature of having a bootstrap prefix command which can be seamlessly incorporated with estimation commands (e.g., logistic regression or OLS regression) and non-estimation commands (e.g., summarize). The bootstrap command automates the bootstrap process for the statistic of interest and computes relevant summary measures (i.e., bias and confidence intervals). As convenient as this command is, however, there are instances when the statistic you want to bootstrap does not work within the command. For such instances, you need to write your own bootstrap program. This Stata FAQ shows how to write your own bootstrap program. Example 1 This example we use the bootstrap command and replicate the results by writing our own bootstrap program. Writing our own bootstrap program requires four steps. In the first step we obtain initial estimates and store the results in a matrix, say observe. Example 2

www.stanford.edu/class/polisci203/ordered.pdf BibTeX : bibliographie sous LaTeX Introduction LaTeX prend en charge la numérotation des titres, des figures, des tableaux, etc... De la même manière, BibTeX prend en charge les bibliographies (c'est facile, Bib pour biblio, TeX pour... TeX). Il suffit, pour construire sa biblio, de créer un fichier au format .bib (exemple : biblio.bib), et de taper les références en y intégrant une étiquette pour chaque document, qui servira dans le contenu du document principal. Fichier .bib Types d'entrées, étiquette et champs Pour remplir son fichier avec toutes ses références bibliographique, il suffit de suivre le standard, relativement simple et pratique : chaque type de référence possède des champs, sans lesquels il serait difficile des identifier correctement. Utilisation d'alias (ou d'abréviations) Document principal Citer une référence Il suffit d'inclure dans le contenu à l'endroit où l'on veut une référence bibliographique ~\cite{étiquette} (le ~ signifiant espace insécable). Création de la bibliographie Compilation \begin{document}

LaTeX Mathematical Symbols 10 Array environment, examples Simplest version: \begin{array}{ cols row m \end{array} where includes one character [ lrc ] for each column (with optional characters inserted for vertical lines)and j includes character a total of ( n 1) times to separate the elements in the row. \left( \begin{array}{cc} 2\tau & 7\phi-frac5{12} \\3\psi & \frac{\pi}8 \end{array} \right)\left( \begin{array}{c} x \\ y \end{array} \right)\mbox{~and~} \left[ \begin{array}{cc|r}3 & 4 & 5 \\ 1 & 3 & 729 \end{array} \right] τ φ ψ π xy and f(z) = \left\{ \begin{array}{rcl}\overline{\overline{z^2}+\cos z} & \mbox{for}& |z|<3 \\ 0 & \mbox{for} & 3\leq|z|\leq5 \\\sin\overline{z} & \mbox{for} & |z|>5\end{array}\right. f z + cos for 30 for 3 5sin 11 Other Styles (math mode only) Caligraphic letters $\mathcal{A}$ etc Mathbb letters $\mathbb{A}$ Mathfrak letters $\mathfrak{A}$ ABCDEFGHIJKLMNOPQRSTUVWXYZ abc 123 Math Sans serif letters $\mathsf{A}$ Math bold letters $\mathbf{A}$ ABCDEFGHIJKLMNOPQRSTUVWXYZ abc 123Math bold italic letters : define then use $\mathbi{A}$

Stata FAQ: How can I extract a portion of a string variable using regular expressions? Stata FAQ: How can I extract a portion of a string variable using regular expressions? String processing is fairly easy in Stata because of the many built-in string functions. Among these string functions are three functions that are related to regular expressions, regexm for matching, regexr for replacing and regexs for subexpressions. We will show some examples of how to use regular expression to extract and/or replace a portion of a string variable using these three functions. At the bottom of the page is an explanation of all the regular expression operators as well as the functions that work with regular expressions. Examples Example 1: A researcher has addresses as a string variable and wants to create a new variable that contains just the zip codes. Example 2: We have a variable that contains full names in the order of first name and then last name. Example 1: Extracting zip codes from addresses Let's start with some fake entries of addresses. Example 1, Variation Number 1 regexs(n)

DSS - Panel Data Home Online Help Analysis Panel Data Introduction Panel data, also called longitudinal data or cross-sectional time series data, are data where multiple cases (people, firms, countries etc) were observed at two or more time periods. There are two kinds of information in cross-sectional time-series data: the cross-sectional information reflected in the differences between subjects, and the time-series or within-subject information reflected in the changes within subjects over time. While it is possible to use ordinary multiple regression techniques on panel data, they may not be optimal. Using Panel Data in Stata A panel dataset should have data on n cases, over t time periods, for a total of n × t observations. Stata provides a number of tools for analyzing panel data. To use these commands, first tell Stata that your dataset is panel data. Sort your data by the panel variable and then by the date variable within the panel variable. . sort panelvar datevar . tsset panelvar datevar

DYADS: Stata module to transform observations into dyads When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s457267. See general information about how to correct material in RePEc. For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: baum@bc.edu (Christopher F Baum) If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. If references are entirely missing, you can add them using this form. If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form. If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. Please note that corrections may take a couple of weeks to filter through the various RePEc services.

Related: