...@gmail.com]
Sent: Tuesday, April 21, 2009 9:31 AM
To: Vemuri, Aparna
Subject: Re: [R] Fitting linear models
Aparna, why are your IVs so highly intercorrelated? It's not a good sign...
On Tue, Apr 21, 2009 at 12:29 PM, Dimitri Liakhovitski wrote:
> But if the multicollinearity is so strong
9:02 AM
To: Vemuri, Aparna
Cc: r-help@r-project.org; David Winsemius
Subject: Re: [R] Fitting linear models
I am not sure what the problem is.
I found no errors:
data<-read.csv(file.choose()) # I had to change your file extension
to .csv first
dim(data)
names(data)
lapply(data,function(x){
f the variables to have
coefficients in the regression equation or a at least a consistent result,
irrespective of the order of input information.
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: Tuesday, April 21, 2009 8:38 AM
To: Vemuri, Aparna
Cc: r-help@r-projec
Yes, they are all of the same length.
-Original Message-
From: Dimitri Liakhovitski [mailto:ld7...@gmail.com]
Sent: Tuesday, April 21, 2009 8:32 AM
To: Vemuri, Aparna
Cc: r-help@r-project.org
Subject: Re: [R] Fitting linear models
Are they of the same length?
On Tue, Apr 21, 2009 at 11
The variables are all in separate vectors.
-Original Message-
From: Dimitri Liakhovitski [mailto:ld7...@gmail.com]
Sent: Tuesday, April 21, 2009 8:26 AM
To: Vemuri, Aparna
Cc: David Winsemius; r-help@r-project.org
Subject: Re: [R] Fitting linear models
Aparna,
I should have been more
gives me the same result as before.
Bert:
This is not homework. But I will remember to do my research before posting
here.
Aparna
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: Monday, April 20, 2009 5:35 PM
To: Vemuri, Aparna
Cc: r-help@r-project.or
I am not sure if this is an R-users question, but since most of you here
are statisticians, I decided to give it a shot.
I am using the lm() function in R to fit a dependent variable to a set
of 3 to 5 independent variables. For this, I used the following
commands:
>model1<-lm(function=PBW~SO4+N
I was trying to format and write each line while looping over the entire
matrix; which made it terribly slow. Without the loop, it works fine.
Thanks Duncan.
-Original Message-
From: Duncan Murdoch [mailto:murd...@stats.uwo.ca]
Sent: Wednesday, April 15, 2009 10:04 AM
To: Vemuri, Aparna
Duncan
I tried writeLines. But I need to print about 23 lines and it is
really slow.
Thanks
Aparna
-Original Message-
From: Duncan Murdoch [mailto:murd...@stats.uwo.ca]
Sent: Tuesday, April 14, 2009 4:34 PM
To: Vemuri, Aparna
Cc: r-help@r-project.org
Subject: Re: [R] Controlling
Morse [mailto:morse.bren...@gmail.com]
Sent: Tuesday, April 14, 2009 5:35 PM
To: Vemuri, Aparna
Cc: r-help@r-project.org
Subject: Re: [R] Controlling widths in write.fwf()
Hi Aparna, you could always use the write.table function and set
sep="". This will put all of your data into a sort of "f
Is there a way to handle the widths of values being written to a file
using wrtite.fwf() ?
For example, I used read.fwf(file, width.vector) to read a file. After
making the necessary data manipulation, I want to write the data to a
new file in the same width.vector format. Is there a way to specif
I have a large 3 dimensional array of size (243,246,768)
The first dimension is Rows, second is columns and the third is Time.
So for each row and column, I want to calculate the mean of time steps
1:8, 2:9, 3:10 and so on and assign the values to a new array. For this
I am using the following s
can share any ideas on how to do this.
-Original Message-
From: jim holtman [mailto:jholt...@gmail.com]
Sent: Friday, February 06, 2009 4:52 PM
To: Vemuri, Aparna
Cc: r-help@r-project.org
Subject: Re: [R] Tables in legend
This will probably do what you need:
plot(1)
I need to create a legend for a simple scatter plot in the following
format.
This is Blah1 number1 number2
This is Blah2 number3 number4
.
.
.
This is Blah6 number11number12
I looked up these help pages and found the following solution.
lStr<-c(Blah1, Blah2,Blah6, number 1,
Dear R users,
I have a matrix "final" which looks like this:
final
oSO4 oNO3 mSO4 mNO3
[1,] 3.3728 0.2110 1.9517421 1.01883602
[2,] 0.8249 0.0697 1.5970292 0.11368781
[3,] 0.2636 0.1004 0.6012445 0.24356332
[4,] 8.0072 0.3443 6.1016998 3.63207149
[5,] 13.5079 0
15 matches
Mail list logo