万本电子书0元读

万本电子书0元读

顶部广告

Mastering Scientific Computing with R电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Paul Gerrard

出  版  社:Packt Publishing

出版时间:2015-01-31

字       数:293.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you want to learn how to quantitatively answer scientific questions for practical purposes using the powerful R language and the open source R tool ecosystem, this book is ideal for you. It is ideally suited for scientists who understand scientific concepts, know a little R, and want to be able to start applying R to be able to answer empirical scientific questions. Some R exposure is helpful, but not compulsory.
目录展开

Mastering Scientific Computing with R

Table of Contents

Mastering Scientific Computing with R

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Programming with R

Data structures in R

Atomic vectors

Operations on vectors

Lists

Attributes

Factors

Multidimensional arrays

Matrices

Data frames

Loading data into R

Saving data frames

Basic plots and the ggplot2 package

Flow control

The for() loop

The apply() function

The if() statement

The while() loop

The repeat{} and break statement

Functions

General programming and debugging tools

Summary

2. Statistical Methods with R

Descriptive statistics

Data variability

Confidence intervals

Probability distributions

Fitting distributions

Higher order moments of a distribution

Other statistical tests to fit distributions

The propagate package

Hypothesis testing

Proportion tests

Two sample hypothesis tests

Unit root tests

Summary

3. Linear Models

An overview of statistical modeling

Model formulas

Explanatory variables interactions

Error terms

The intercept as parameter 1

Updating a model

Linear regression

Plotting a slope

Analysis of variance

Generalized linear models

Generalized additive models

Linear discriminant analysis

Principal component analysis

Clustering

Summary

4. Nonlinear Methods

Nonparametric and parametric models

The adsorption and body measures datasets

Theory-driven nonlinear regression

Visually exploring nonlinear relationships

Extending the linear framework

Polynomial regression

Performing a polynomial regression in R

Spline regression

Nonparametric nonlinear methods

Kernel regression

Kernel weighted local polynomial fitting

Optimal bandwidth selection

A practical scientific application of kernel regression

Locally weighted polynomial regression and the loess function

Nonparametric methods with the np package

Nonlinear quantile regression

Summary

5. Linear Algebra

Matrices and linear algebra

Matrices in R

Vectors in R

Matrix notation

The physical functioning dataset

Basic matrix operations

Element-wise matrix operations

Matrix subtraction

Matrix addition

Matrix sweep

Basic matrixwise operations

Transposition

Matrix multiplication

Multiplying square matrices for social networks

Outer products

Using sparse matrices in matrix multiplication

Matrix inversion

Solving systems of linear equations

Determinants

Triangular matrices

Matrix decomposition

QR decomposition

Eigenvalue decomposition

Lower upper decomposition

Cholesky decomposition

Singular value decomposition

Applications

Rasch analysis using linear algebra and a paired comparisons matrix

Calculating Cronbach's alpha

Image compression using direct cosine transform

Importing an image into R

The compression technique

Creating the transformation and quantization matrices

Putting the matrices together for image compression

DCT in R

Summary

6. Principal Component Analysis and the Common Factor Model

A primer on correlation and covariance structures

Datasets used in this chapter

Principal component analysis and total variance

Understanding the basics of PCA

How does PCA relate to SVD?

Scaled versus unscaled PCA

PCA for dimension reduction

PCA to summarize wine properties

Choosing the number of principal components to retain

Formative constructs using PCA

Exploratory factor analysis and reflective constructs

Familiarizing yourself with the basic terms

Matrices of interest

Expressing factor analysis in a matrix model

Basic EFA and concepts of covariance algebra

Concepts of EFA estimation

The centroid method

Multiple actors

Direct factor extraction by principal axis factoring

Performing principal axis factoring in R

Other factor extraction methods

Factor rotation

Orthogonal factor rotation methods

Quartimax rotation

Varimax rotation

Oblique rotations

Oblimin rotation

Promax rotation

Factor rotation in R

Advanced EFA with the psych package

Summary

7. Structural Equation Modeling and Confirmatory Factor Analysis

Datasets

Political democracy

Physical functioning dataset

Holzinger-Swineford 1939 dataset

The basic ideas of SEM

Components of an SEM model

Path diagram

Matrix representation of SEM

The reticular action model (RAM)

An example of SEM specification

An example in R

SEM model fitting and estimation methods

Assessing SEM model fit

Using OpenMx and matrix specification of an SEM

Summarizing the OpenMx approach

Explaining an entire example

Specifying the model matrices

Fitting the model

Fitting SEM models using lavaan

The lavaan syntax

Comparing OpenMx to lavaan

Explaining an example in lavaan

Explaining an example in OpenMx

Summary

8. Simulations

Basic sample simulations in R

Pseudorandom numbers

The runif() function

Bernoulli random variables

Binomial random variables

Poisson random variables

Exponential random variables

Monte Carlo simulations

Central limit theorem

Using the mc2d package

One-dimensional Monte Carlo simulation

Two-dimensional Monte Carlo simulation

Additional mc2d functions

The mcprobtree() function

The cornode() function

The mcmodel() function

The evalmcmod() function

Data visualization

Multivariate nodes

Monte Carlo integration

Multiple integration

Other density functions

Rejection sampling

Importance sampling

Simulating physical systems

Summary

9. Optimization

One-dimensional optimization

The golden section search method

The optimize() function

The Newton-Raphson method

The Nelder-Mead simplex method

More optim() features

Linear programming

Integer-restricted optimization

Unrestricted variables

Quadratic programming

General non-linear optimization

Other optimization packages

Summary

10. Advanced Data Management

Cleaning datasets in R

String processing and pattern matching

Regular expressions

Floating point operations and numerical data types

Memory management in R

Basic R memory commands

Handling R objects in memory

Missing data

Computational aspects of missing data in R

Statistical considerations of missing data

Deletion methods

Listwise deletion or complete case analysis

Pairwise deletion

Visualizing missing data

An overview of multiple imputation

Imputation basic principles

Approaches to imputation

The Amelia package

Getting estimates from multiply imputed datasets

Extracting the mean

Extracting the standard error of the mean

The mice package

Imputation functions in mice

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部