Forecasts and ggplot. The forecast package uses the base R graphics for all plots, but some people may prefer to use the nice graphics available using the ggplot2 package.

In the following two posts, Frank Davenport shows how it can be done: To leave a comment for the author, please follow the link and comment on his blog: Research tips » R. Regression – covariate adjustment. Linear regression is one of the key concepts in statistics [wikipedia1, wikipedia2].

However, people are often confuse the meaning of parameters of linear regression - the intercept tells us the average value of y at x=0, while the slope tells us how much change of y can we expect on average when we change x for one unit - exactly the same as in the linear function, though we use averages here due to noise. Today colleague got confused with the meaning of adjusting covariate (x variable) and the effect of parameter estimates. By shifting the x scale, we also shift the point at which intercept is estimated. Sixty two-minute r twotorials now available. Sixty twotorials now posted. two minutes each. new video highlights: purpose.of.twotorials.com <- ifelse( you are not yet fluent in the r language , help you learn more , provide quicklinks to answer colleagues' r questions ) here's a video that no one who has ever seriously used r would need - but might find useful to send along with syntax that a newbie needs to run for some reason: 041 did someone send you a script file or computer code for the r programming language?

Here's how to run it! Using R for Analyzing Loans, Portfolios and Risk: From Academic Theory to Financial Practice. Dr.

Sanjiv Das, Professor of Finance and Chair of the Finance Department at Santa Clara University's Leavey School of Business He will present: An R-based model for optimizing loan modifications on distressed home loans, and the economics of these modifications.A goal-based portfolio optimization model for investors who use derivatives.Using network modeling tools in R to detect systemically risky financial institutions.Using R for web delivery of financial models and random generation of pedagogical problems. Promising to be entertaining and enlightening, this webinar will emphasize the interplay of mathematical models, economic problems, and R. View the recorded webinar: User Input in R vs Python.

Both R and Python have facilities where the coder can write a script which requests a user to input some information.

In Python 2.6, the main function for this task is raw_input (in Python 3.0, it’s input()). In R, there are a series of functions that can be used to request an input from the user, including readline(), cat(), and scan(). However, I find the readline() function to be the optimal function for this task. "Correlation / Covariance" Spectrum (This time with "R") I treat this matter with other software´s, and of course you can do the same with "R".Once I have the spectra of my samples with a math treatment, I want to draw a correlation spectrum to see which wavelengths have better correlation with the constituent of interest.

In this example I want to see the correlation of the wavelengths treated with MSC (Multiple Scatter Correction) respect to the Moisture value of the Demo file, but only in the NIR range (1100 to 2498 nm = 700 data points). >Xmsc<-demoNIR_msc$NIRmsc>Ymoi<-demoNIR_msc$Moisture>cor_spec<-cor(Ymoi,Xmsc[,1:700])>matplot(wave_nir,t(cor_spec),lty=1,pch="*", R: Functions for extreme value distributions. Finance. By Daniel Hanson, QA Data Scientist, Revolution Analytics Introduction and Data Setup Last time, we included a couple of examples of plotting a single xts time series using the plot(.) function (ie, said function included in the xts package).

Today, we’ll look at some quick and easy methods for plotting overlays of multiple xts time series in a single graph. Using R for Analyzing Loans, Portfolios and Risk: From Academic Th... 12,615 views Dr.

Sanjiv Das has held positions as at Citibank, Harvard University Professor and Program Director at the FDIC’s Center for Financial Research. His research relies heavily on R for analysis and ... Dr. Sanjiv Das has held positions as at Citibank, Harvard University Professor and Program Director at the FDIC’s Center for Financial Research. Optimization and Mathematical Programming. This CRAN task view contains a list of packages which offer facilities for solving optimization problems.

Although every regression model in statistics solves an optimization problem they are not part of this view. If you are looking for regression methods, the following views will contain useful starting points: Multivariate, SocialSciences, Robust among others. The focus of this task view is on Optimization Infrastructure Packages , General Purpose Continuous Solvers , Mathematical Programming Solvers and Specific Applications in Optimization . Packages are categorized in these three sections.

Boxcox {MASS} Box-Cox Transformations for Linear Models Description Computes and optionally plots profile log-likelihoods for the parameter of the Box-Cox power transformation.

Usage. Sem. OpenMx - Advanced Structural Equation Modeling. Lavaan. Forecast {forecast}