Showing posts with label учись. Show all posts
Showing posts with label учись. Show all posts

Tuesday, January 13, 2015

qualitative or mixed data analysis

LinkedIn даёт пакет для такого анализа.
#Rstats #research My brief survey of R packages for qualitative (or mixed) data analysis. http://qr.ae/6auZw

Javier, I appreciate the suggestion and the link. In my post, I've tried to limit the discussion to R packages that are much more focused on qualitative data analysis than many others. I understand that "lme4" and many other packages contain functionality that deals with qualitative (in a form of categorical) or mixed data, but I was trying to limit the scope of the material for better focus. More importantly, mixed-effects modeling is IMHO inherently quantitative approach. Nevertheless, this is an interesting topic, which I plan to become acquainted more with in the future. Thank you again and feel free to connect!

Check also this package: http://factominer.free.fr/advanced-methods/multiple-factor-analysis.html

Ahmed, I'm aware of "factominer" and some other FA packages. However, I tend to think of them mostly as packages for quantitative data analysis, despite their support for categorical data. Please see my points in the comment for Javier above. Anyway, I appreciate your comment.

Sunday, April 7, 2013

Top 10 tips to get started with R

(This article was first published on mages' blog, and kindly contributed to R-bloggers)

  1. Be motivated. R has a steep learning curve. Find a problem you can't solve otherwise. E.g. plotting multivariate data, a statistical analysis for which an R function exists already.
  2. Download and install R. Get to know the R console. Learn how to install additional packages, how to access the history, how to use auto completion and open the help system. Review the R Installation and Administration manual and check out the free books section on CRAN. 
  3. Get familiar with the R help files. They can appear cryptic at the start, but there is a structure to them. Read and re-read a couple of help files again and again. Look out for the input and output sections, execute the examples, run the demos, e.g.demo(graphics). Subscribe to R-help and read questions and answers, check outstackoverflow, follow blogs. Search with Rseek.org
  4. Learn how to get your data into R. The easiest way is usually via a CSV-file (CSV=comma separated values), using read.csv. Look into XLConnect, if you have to deal with spreadsheet files. Move on to write queries against data bases, e.g. using RODBC. Skim through the R Data Import/Export manual. 
  5. Try to understand the different data types in R and how to modify them. What are the differences between a matrix and a data frame? What is a factor? What is a list? Think about the different use cases. Review the Introduction to R manual.
  6. Do charts! Lots of charts. They are rewarding and keep you motivated. Be inspired by the R Graph Gallery. Check out the following packages: latticeplotrixggplot2,deducergoogleVis.
  7. Learn how you can modify and reshape data in R and apply functions on subsets using by, apply, lapply, avereshapesweep, with, within, etc. Set aside a weekend to think about these functions. 
  8. Write your R code into files instead of typing it all into the R console. Use anintegrated development environment (IDE), e.g. ESS EmacsRStudioStatET Eclipse.
  9. Understand the concept of functions. Write a function, which gives "Hello World" back. Modify it, so it has an input argument NAME and it prints "Hello NAME". Review the code of existing R functions. Copy from existing code.
  10. Document your code! Start your code by explaining what you want to achieve and only code that much, then write down the next step in plain English and code again. How will you know that your code does what you want it to do? Testing can help. Think your about your code style and how you will be versioning your files.

Bonus tip


To leave a comment for the author, please follow the link and comment on his blog:mages' blog.
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2Boxplotsmapsanimation), programming (RStudioSweaveLaTeX,SQLEclipsegithadoopWeb Scraping) statistics (regressionPCAtime series,ecdf,trading) and more...

Tuesday, February 26, 2013

Statistics for the Social Sciences

страничка jfox at mcmaster.ca на кране
с короткими рекомендациями
любопытно, что этому блогу уже больше 2х лет, начал 3 февраля 2011

Thursday, December 13, 2012

meaning forecast

robjhyndman.com пишет про новый R пакет прогнозирования как бе, но пишет следующим образом:
The accuracy func­tion now works with both time series fore­casts and cross-​​sectional forecasts. то-есть, по-руски прогнозирование -- это предвидение по времени, а попе н достансге -- совсем не обязательно и вводит нас (если на демографическом образовании строицо) в мир indirect techniques

Thursday, October 11, 2012

research vs grants

Rob J Hyn­d­man :
I don’t think telling peo­ple what research areas are impor­tant is very help­ful. The best research comes about when peo­ple are curi­ous and pas­sion­ate, and take a sur­pris­ingly dif­fer­ent per­spec­tive from those who have gone before.
from here
действительно, как раз сейчас пытаюсь ответить на вопросы какбе грантодателей, 1 из х:
Существует ли в стране политика, программа и/или стратегия, направленная на решение вопросов сексуального и репродуктивного здоровья и репродуктивных прав, которая(ые) находится в процессе разработки или исполнения?
ответить надо да/нет

Thursday, April 26, 2012

Tutorials from Universities Around the World


Online tutorials for R programming, Statistics and Graphic

Here is a list of FREE R tutorials hosted in official website of universities around the world. The tutorials are listed  in no particular order, actually based on when I have discovered it. They will be categorised soon. Please kindly suggest me other university-hosted online R tutorials by email to me@pairach.com.
  1. University of California at Davis,
    Getting Started with the R Data Analysis Package
    by Professor Norm Matloff
  2. Clarkson University,
    R Tutorial
    by
     Kelly Black
  3. York University,
    Getting started with R
  4. University of Waterloo
    R Tutorial For A WINDOWS Environment (WindowsUnix)
  5. University of California at Los Angles, UCLA,
    Resources to help you learn and use R
  6. University of California at Riverside.
    Programming in R
  7. University of Illinois,
    A Brief Introduction to R
  8. University of Texas at Austin,
    R Tutorial Videos
    by Brandon K. Vaughn
  9. University of California at Berkeley,
    An Introduction to R (PDF)
    by Phil Spector
  10. University of California at Santa Babara,
    R Programming Resource Centre
    by National Center for Ecological Analysis and Synthesis
  11. Chiang Mai University,
    Econometrics with R (in Thai)
    by Pairach Piboonrungroj.
  12. University of Carnegie Mellon,
    A Tutorial: Some Fundamentals of R.
    by Bruce E. Trumbo
  13. University of Illinois State,
    R Tutorial.
    by Dong-Yun Kim
  14. University of MacMaster,
    Introduction to the R Statistical Computing Environment.
    by John Fox.
  15. University of Princeton,
    Introducing R.
    by Germán Rodríguez
  16. University of Amsterdam,
    How to draw graphs with R,  [Graphics]
    by A.M. (Angelos-Miltiadis) Krypotos
  17. University of North Texas,
    Do it yourself – Introduction to R [Intro]
  18. University of Warwick,
    R programming page [Biosciences: Molecular Organisation and Assembly in Cells]
    by Peter Cock.
  19. University of Illinois at Urbana-Champaign
    R tutorial for Applied Econometrics
    by Prof. Roger Koenker
  20. Coastal Carolina University
    R tutorials [General]
    by  William B. King
  21. University of Colorado Denver
    R Tutorial [General]
    by  Stephanie Santorico and Mark Shin
  22. Stanford School of Medicine (Biomedical Informatics)
    R Tutorial [VDO on Introduction + Translational Bioinformatics]
  23. Harding University
    Producing Simple Graphs with R [basic graphic e.g., line, bar, hist, line]
    by Frank McCown
  24. University of Kentucky, Department of Statistics
    Use Software R to do Survival Analysis and Simulation [pdf]
    by Mai Zhou

Sunday, October 2, 2011

R in Action

R in Action. Data Analysis and Graphics with R, Robert I. Kabacoff // August, 2011 | 472 pages, ISBN 9781935182399

Part I Getting Started
1 Introduction to R
1.1 Why use R?
1.2 Obtaining and installing R
1.3 Working with R
1.4 Packages
1.5 Batch processing
1.6 Using output as input—reusing results
1.7 Working with large datasets
1.8 Working through an example
1.9 Summary
2 Creating a dataset
2.1 Understanding datasets
2.2 Data structures
2.3 Data input
2.4 Annotating datasets
2.5 Useful functions for working with data objects
2.6 Summary
3 Getting started with graphs
3.1 Working with graphs
3.2 A simple example
3.3 Graphical parameters
3.4 Adding text, customized axes, and legends
3.5 Combining graphs
3.6 Summary
4 Basic data management
4.1 A working example
4.2 Creating new variables
4.3 Recoding variables
4.4 Renaming variables
4.5 Missing values
4.6 Date values
4.7 Type conversions
4.8 Sorting data
4.9 Merging datasets
4.10 Subsetting datasets
4.11 Using SQL statements to manipulate data frames
4.12 Summary
5 Advanced data management
5.1 A data management challenge
5.2 Numerical and character functions
5.3 A solution for our data management challenge
5.4 Control flow
5.5 User-written functions
5.6 Aggregation and restructuring
5.7 Summary
Part II Basic Methods
6 Basic graphs
6.1 Bar plots
6.2 Pie charts
6.3 Histograms
6.4 Kernel density plots
6.5 Box plots
6.6 Dot plots
6.7 Summary
7 Basic statistics
7.1 Descriptive statistics
7.2 Frequency and contingency tables
7.3 Correlations
7.4 t-tests
7.5 Nonparametric tests of group differences
7.6 Visualizing group differences
7.7 Summary
Part III Intermediate Methods
8 Regression
8.1 The many faces of regression
8.2 OLS regression
8.3 Regression diagnostics
8.4 Unusual observations
8.5 Corrective measures
8.6 Selecting the “best” regression model
8.7 Taking the analysis further
8.8 Summary
9 Analysis of variance
9.1 A crash course on terminology
9.2 Fitting ANOVA models
9.3 One-way ANOVA
9.4 One-way ANCOVA
9.5 Two-way factorial ANOVA
9.6 Repeated measures ANOVA
9.7 Multivariate analysis of variance (MANOVA)
9.8 ANOVA as regression
9.9 Summary
10 Power analysis
10.1 A quick review of hypothesis testing
10.2 Implementing power analysis with the pwr package
10.3 Creating power analysis plots
10.4 Other packages
10.5 Summary
11 Intermediate graphs
11.1 Scatter plots
11.2 Line charts
11.3 Correlograms
11.4 Mosaic plots
11.5 Summary
12 Resampling statistics and bootstrapping
12.1 Permutation tests
12.2 Permutation test with the coin package
12.3 Permutation tests with the lmPerm package
12.4 Additional comments on permutation tests
12.5 Bootstrapping
12.6 Bootstrapping with the boot package
12.7 Summary
Part IV Advanced Methods
13 Generalized linear models
13.1 Generalized linear models and the glm() function
13.2 Logistic regression
13.3 Poisson regression
13.4 Summary
14 Principal components and factor analysis
14.1 Principal components and factor analysis in R
14.2 Principal components
14.3 Exploratory factor analysis
14.4 Other latent variable models
14.5 Summary
15 Advanced methods for missing data
15.1 Steps in dealing with missing data
15.2 Identifying missing values
15.3 Exploring missing values patterns
15.4 Understanding the sources and impact of missing data
15.5 Rational approaches for dealing with incomplete data
15.6 Complete-case analysis (listwise deletion)
15.7 Multiple imputation
15.8 Other approaches to missing data
15.9 Summary
16 Advanced graphics
16.1 The four graphic systems in R
16.2 The lattice package
16.3 The ggplot2 package
16.4 Interactive graphs
16.5 Summary

afterword Into the rabbit hole
appendix A Graphic user interfaces
appendix B Customizing the startup environment
appendix C Exporting data from R
appendix D Creating publication-quality output
appendix E Matrix Algebra in R
appendix F Packages used in this book
appendix G Working with large datasets
appendix H Updating an R installation
index


Saturday, March 12, 2011

миграция SPSS>R

подумалось: наверно неплохо было бы иметь переводчик SPSS команд в R, но, судя по всему, его на самом деле нет
почему?
нашёл статью по миграции с интересным, но мало понятным текстом:
Для OpenOffice.org существует другой замечательный пакет под названием odfWeave, который выполняет ту же саму задачу, что и Sweave(), но в документе OpenOffice. Вам даже не требуется копировать и вставлять таблицы или диаграммы: просто напишите код программы R в своем документе, пропустите его через R (да-да, R может так сделать) и на выходе вы получите новый документ ODF с таблицами и диаграммами именно в тех местах, где вы написали код.