Displaying 20 results from an estimated 4000 matches similar to: "Automated plot and linear regression line/data"
2010 Aug 18
5
Linear regression equation and coefficient matrix
Hi,
I have 20*60 data matrix (with some NAs) and I wish to perfom a Pearson
correlation coefficient matrix as well as simple linear regression equation
and coefficient of determination (R2) for every possible combination. Any
tip/idea/library/script how do to so.
Thanks,
As hz
--
View this message in context:
2010 Aug 19
1
Correlograms and linear regression
Dear all,
I generated a Correlograms and used the panel.ellipse (confidence ellipse
and smoothed line) option. Is there a way to get instead of the smoothed
line the linear regression?
Thanks,
As hz
--
View this message in context: http://r.789695.n4.nabble.com/Correlograms-and-linear-regression-tp2331071p2331071.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 05
1
ggplot2-grid/viewport and PNG
Dear All,
The following code save my graphs as pdf:
pdf("j:/mix.pdf", width = 18, height = 16)
grid.newpage()
pushViewport(viewport(layout = grid.layout(3,1)))
vplayout <- function(x, y)
viewport(layout.pos.row = x, layout.pos.col = y)
print(Aplot, vp = vplayout(1, 1))
print(Bplot, vp = vplayout(2, 1))
print(Cplot, vp = vplayout(3, 1))
dev.off()
How can I save it in
2011 Aug 24
1
Scatter plots, linear regression in ggplot2
Hi,
Based on some modification that I did to the R Cookbook Graphs Scatterplots
code, link:http://wiki.stdout.org/rcookbook/Graphs/Scatterplots%20(ggplot2)
I have some questions and I will appreciate a help:
- How do I change the legend title?
- How can I change the for each linear regression its color and linetype?
- How can I add for both the linear regression lines their equations and
Rseq
2010 Oct 18
2
Sine function fitting
Hi,
Is there a package to perform a sine function fitting to XY data?
Thx,
Ashz
--
View this message in context: http://r.789695.n4.nabble.com/Sine-function-fitting-tp3000156p3000156.html
Sent from the R help mailing list archive at Nabble.com.
2011 Aug 22
1
lattice to ggplot2 conversion help
Hi,
I am interested in ggplot2 and I found this lattice code very interesting
(http://addictedtor.free.fr/graphiques/graphcode.php?graph=48).
Code:
library(lattice)
lattice.options(default.theme = canonical.theme(color = FALSE))
tmp <-
expand.grid(geology = c("Sand","Clay","Silt","Rock"),
species = c("ArisDiff",
2010 Mar 01
2
Simple Linear Autoregressive Model with R Language
Hello -
I need to do simple linear autoregressive model with R software for my
thesis. I looked into all your documentation and I am not able to find
anything too helpful. Can someone help me with the codes?
Thanks
Emil
[[alternative HTML version deleted]]
2009 Jul 22
2
All possible linear models given multiple explaining variables
Hi,
I would like to have a script/function (or write one) that can calculate the
linear models for all possible combinations of explaining variables.
Eventually I would like to end up with a data base (or data frame) giving
for each model the R2, R2adj, AIC etc.
Currently I'm a bit stuck while writing my own script using the lm()
function from the base package. Also, I haven't fund any
2005 Oct 14
2
run many linear regressions against the same independent variables in batch
R function
lm(response ~ term)
allows me to run a linear regression on a single response vector. For
example, I have recent one year historical prices for a stock and S&P
index. I can run regression of the stock prices (as response vector)
against the S&P index prices (as term vector).
Now assume I have 1000 stocks to run the above regressions (against the
same S&P index prices).
2007 Aug 16
4
Linear models over large datasets
I'd like to fit linear models on very large datasets. My data frames
are about 2000000 rows x 200 columns of doubles and I am using an 64
bit build of R. I've googled about this extensively and went over the
"R Data Import/Export" guide. My primary issue is although my data
represented in ascii form is 4Gb in size (therefore much smaller
considered in binary), R consumes about
2008 Apr 11
2
Help load a package into R
Dear R List,
I want to download kinship_1.2_S.tar.gz in http://mayoresearch.mayo.edu/mayo/research/biostat/splusfunctions.cfm
to R. Once save this file to C:\, how I could load into R? I am working in Windows XP. Usually what I do is, I go to "packages" and then "install packages from local zip files". This procedure fails for .tar.gz files. Can someone help here please....
2010 Jul 16
2
Recommended way of requiring packages of a certain version?
What is the recommended way of requiring a certain version when loading
a package (or, indeed, from R itself)?
Perl has the
require module version
use module version
require version
use version
constructs which is kind of what I am looking for (especially 'use'
which is evaluated at compile time), but R seems to have lost the
version= argument to require().
The best I have been able
2010 Aug 05
1
using grib files in R
I am not new to R, but I am new to .grib files. I am downloading some
climate data and I would like to analyze it in R. R has a nice netcdf
package, but I don?t see any package available to deal specifically
with grib files. I see a few posts from other people using grib files
in R. However, I was unclear if they used grib files in a different
software program and then imported the data
2013 Jul 10
3
PCA and gglot2
Hi,
I was trying as well as looking for an answer without success (a bit strange
since it should be an easy problem) and therefore I will appreciate you
help:
My simple script is:
# Loadings data of 5 columns and 100 rows of data
data1<-read.csv("C:/?/MyPCA.csv")
pairs(data1[,1:4])
pca1 <- princomp(data1[,1:4], score=TRUE, cor=TRUE)
biplot(pca1)
The biplot present the data
2010 Oct 27
3
ggplot - unwanted sorted X values
Hi,
I have this script:
dat <- data.frame(X = halistat$Date,Y1 = halistat$avg,Y2 = halistat$stdev)
ggplot(data = dat, aes(x = X, y = Y1, ymin = Y1 - Y2, ymax = Y1 + Y2)) +
geom_point() + # points at the means
geom_line() + # if you want lines between pints
geom_errorbar() # error bars, Y1 - Y2 and Y1 + Y2
halistat$Date values:
29/1/10
21/2/10
30/3/10
30/4/10
30/5/10
In the resulted
2011 Aug 20
2
a Question regarding glm for linear regression
Hello All,
I have a question about glm in R. I would like to fit a model with glm function, I have a vector y (size n) which is my response variable and I have matrix X which is by size (n*f) where f is the number of features or columns. I have about 80 features, and when I fit a model using the following formula,?
glmfit = glm(y ~ x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12 + x13
2009 May 26
4
moving from Windows to Linux - need help
hi
I've used R for many years on windows machines, but
have now acquired an Asus eee 1000 linux machine.
In order to get the best out of the machine, I used the
'pimpmyeee.sh' script, to get the full KDE desktop.
The version of Linux is Xandros, which I believe is
a close relative of Debian, but sadly I have only a
nodding acquaintance with Linux at present.
Naturally I want to
2010 Jun 16
4
an alternative to R for nonlinear stat models
Hi
I implemented the age-structure model in Gove et al (2002) in R, which is a
nonlinear statistical model. However running the model in R was very slow.
So Dave Fournier suggested to use the AD Model Builder Software package and
helped me implement the model there.
ADMB was incredibly fast in running the model:
While running the model in R took 5-10 minutes, depending on the
2010 Aug 11
1
Matrix Plot and linear regression
Hi,
Is it possible to do a Matrix Plot and in the cell perform a linear
regression also adding to the cell the r2 and the equation. If so, how?
Thanks,
As hz
--
View this message in context: http://r.789695.n4.nabble.com/Matrix-Plot-and-linear-regression-tp2321613p2321613.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jun 25
1
Confused: Looping in dataframes
Hey,
I have a data frame x which consists of say 10 vectors. I essentially want
to find out the best fit exponential smoothing for each of the vectors.
The problem while I'm getting results when i say
> lapply(x,ets)
I am getting an error when I say
>> myprint
function(x)
{
for(i in 1:length(x))
{
ets(x[i],model="AZZ",opt.crit=c("amse"))
}
}
The error message is