Displaying 14 results from an estimated 14 matches similar to: "Force regression line to a 1:1 relationship"
2010 Apr 29
3
Simple loop code
Hi fellow R Users,
I find that I typically rewrite my data specific to data in columns, which
is by no means efficient and I am struggling to break out of this bad habit
and utalise some of the excellent things R can do! I have tried to look at
'for' but I don't really follow it, and I wondered if anyone could help with
a simple example using my script so I could follow this and build
2010 Jun 01
2
storing output data from a loop that has varying row numbers
Hi All,
I am trying to run a loop that will have varying numbers of rows with each
output.
Previously I have had the same number of rows so I would use (and I
appreciate that this will no doubt achieve some gasps as being thoroughly
inefficient!):
xdfrow<-(0)
xdfrow1<-(1:32)
xdfrow2<-(33:64)
xdfrow3<-(65:96)
xdfrow4<-(97:128)
xdfrow5<-(129:160)
xdfrow6<-(161:192)
2010 Aug 10
3
grep problem decimal points looping
Hi R Users,
I have been trying to work out how to rename column names using grep,
basically I have generated these column names using tapply:
[1] "NAME" "X1.1" "X2.1" "X3.1" "X4.1" "X5.1" "X6.1" "X7.1" "X8.1"
[10] "X1.2" "X2.2" "X3.2" "X4.2"
2010 Jun 08
3
partial matches across rows not columns
Hi R users,
I am trying to omit rows of data based on partial matches an example of my
data (seal_dist) is below:
A quick break down of my coding and why I need to answer this - I am dealing
with a colony of seals where for example A1 is a female with pup and A1.1 is
that female's pup, the important part of the data here is DIST which tells
the distance between one seal (ID) and another
2010 Apr 08
1
Intra-Class correlation psych package missing data
Hello R users, and perhaps William Revelle in particular,
I'm curious as to how ICC deals with missing data, so for example you are
sampling individuals over set periods in time and one individual is missing
or was not recaptured at that given time point - leading to NA in the
dataset. My thought was that it should then omit data by individual, but I'm
not convinced that that is what it
2010 Jun 13
1
Boxplot intervals combining names
Hi R users,
This seems like a simple problem but I have searched nabble for the answer
and can't seem to find it.
All I want to do is produce a boxplot where I have two boxes for one
Individual but on the xaxis I only have one tick mark centred between the
boxes so I can add the Individuals' name. I have 30 IDs and have shown the
code I use below for a couple of IDs, I figure the data
2010 May 31
2
store and repeat data based on row names (loop, if statement)
Hello fellow R users,
I have an issue that has me a little confused - sorry if the subject makes
little sense, I wasn't sure how to refer to this problem. I have a data set
I've extracted from ArcInfo (a section is shown below). It is spatial data,
showing the distance from one ID to another. I want to get the actual 'TO'
ID from the data set (there is no easy way to do this in
2011 Sep 13
3
ggplot - class "character" problem
Hi
I'm trying to use ggplot2 to chart a dataset that I've drawn in from
excel.? When I run the qplot command, I get the following error
message:
Error: ggplot2 doesn't know how to deal with data of class character
It feels like I need to coerce one of the fields in my data frame.
Here's the code, which is short:
#draw data in from network location
2009 Jun 10
1
R: Best way to plot a Matrix of all possible pair combinations
Hallo R Users,
Please help
I have some distance matrix data like
> M[1:10,]
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 0.8750000 0.5000000 0.5000000 0.3750000 0.6250000 0.00000000
[2,] 0.8928571 1.0000000 0.0000000 0.8928571 0.1071429 0.00000000
[3,] 0.8928571 1.0000000 0.0000000 0.8928571 0.1071429 0.00000000
[4,] 0.8928571 1.0000000 0.0000000 0.8928571
2009 Aug 13
4
lm coefficients output confusing
Hi all,
I have an issue with the lm() function regarding the listing of the
coefficients. My data are below, showing a list of hours (HR) relating to
the time spent resting (R) by an individual animal. Simply i want to run a
lm() to run in an anova() to see if there is a significant difference in
resting between hours.
HR R
1 2 0.6666667
2 2 0.4666667
3 2 0.8000000
4 2
2011 Dec 30
3
Break Points
Respected Sir
I tried the strucchange
My data is attached. However I tried the attached commands (last
save.txt) to perform Bai Perron 2003... I t worked well but in the end
it is giving warning that overlapping confidence interval... I am not
sure how to proceed... Please Help Me
Thanking You
Ayanendu Sanyal
--
Please have a look at our new mission and contribute into it (cut and
paste the
2008 Jul 22
0
loop for multiple regressions
Dear all,
I have the following data in excel:
day1 y 1 2 3 2 3 x1 0.2 0.3 0.4 0.3 0.2 x2 7 3.4 2 8 6 day2 y 2 4 3
2 2 x1 0.4 0.5 0.3 0.3 0.2 x2 7 8 9.1 6 5
I have the following problems:
first of all, when I ask R to read the file (with the package xlsReadWrite
and the command read.xls) it has a problem with the fact that the left most
corner is labelled the same way, so in order for it
2013 Apr 20
7
Reshape or Plyr?
H all,
I have relative abundance data from >100 sites. This is from acoustic
monitoring and usually the data is for 2-3 nights but in some cases my
be longer like months or years for each location..
The data output from my management data base is proved by species by
night for each location so data frame would look like this below. What I
need to do is sum the Survey_time by Spec_Code for
2010 Feb 26
2
Loop overwrite and data output problems
Hello R users,
I have been using R for a while now for basic stats but I'm now trying to
get my head around looping scripts and in some places I am failing!
I have a data set with c. 1200 data points on 98 individual animals with
data on each row representing a daily measure and I am asking the question
"what variables affect the animal's behaviour?"
the dataset includes