Displaying 20 results from an estimated 200 matches similar to: "lmList and lapply(... lm) different std. errors"
2008 Oct 03
1
NA's in segmented
I am trying to fit a very simple broken stick model using the package
"segmented" but I have hit a roadblock.
> str(data)
'data.frame': 18 obs. of 2 variables:
$ Bin : num 0.25 0.75 1.25 1.75 2.25 2.75 3.25 3.75 4.25 4.75 ...
$ LnFREQ: num 5.06 4.23 3.50 3.47 2.83 ...
I fit the lm easily:
> fit.lm<-lm(LnFREQ~Bin, data=id07)
But I keep getting an error
2009 Jul 30
3
Looping through R objects with $ operator and tags
Hi all,
Suppose I want to set the values in a column to the log of the values
of another column like so:
object$LogDist <- log10(object$Distance)
How do I loop through the objects if I have object1, object2, etc to
perform this function?
object1$LogDist <- log10(object1$Distance)
object2$LogDist <- log10(object2$Distance)
object3$LogDist <- log10(object3$Distance)
I was trying to
2010 Aug 31
4
weird to me interaction between time() and %%, %/%
Dear List,
I'm getting weird and unexpected behaviour using time and %%, or %/%. It's
likely I'm not appreciating the nuances of floating point arithmetic. Or it
could be a bug.
I'm running
> R.version
_
platform x86_64-redhat-linux-gnu kernel 2.6.33.8-149.fc13.x86_64
arch x86_64
os linux-gnu
system x86_64, linux-gnu
2005 Jun 28
2
function for cumulative occurrence of elements
Hello,
I have a data set with 9700 records, and 7 parameters.
The data were collected for a survey of forest communities. Sample plots
(1009) and species (139) are included in this data set. I need to determine
how species are accumulated as new plots are considered. Basically, I want
to develop a species area curve.
I've included the first 20 records from the data set. Point
2012 Jan 30
1
how to sum multiple data entries for the same sampling event?
I'm having trouble with some catch per unit effort data (CPUE, fisheries
data). Some of the samples were "retained" and some "unretained," and they
are entered as 2 separate entries for the same sampling event (Date and
time). I want to calculate the total CPUE (so sum the "retained" and
"unretained" number for each sampling event) and am having troubld
2011 Jan 26
2
2 functions with same name - what to do to get the one I want
There seems to be 2 functions call ecdf...
http://lib.stat.cmu.edu/S/Harrell/help/Hmisc/html/ecdf.html
http://127.0.0.1:11885/library/stats/html/ecdf.html
How do I get the one ecdf {Hmisc} to run instead of the ecdf {stats}
A pointer in the right direction would be greatly appreciated.
Tried to instal Hmisc but got this message, so I assume I have it
> utils:::menuInstallPkgs()
Warning:
2003 Nov 11
1
cor
Greetings:
It would seem to me that the three arguments "a", "c" and "p" ought to
produce the same result with a data frame that doesn't have any missing
data which is not the case. What am I doing wrong or what don't I understand?
> tmp <- data.frame(vol,con,mot,esp,pri,sec)
> tmp
vol con mot esp pri sec
1 1.00 120 90 78 21 1
2 0.50
2005 Mar 21
2
NaN
Dear R
What does NaN mean?
I recently did a correlation on a batch of data for some reason it didn't
like one column
cor(sleep,use="complete.obs")
BodyWt BrainWt SlowSleep ParaSleep TotalSleep
BodyWt 1.00000000 0.95584875 -0.3936373 -0.07488845 -0.3428373
BrainWt 0.95584875 1.00000000 -0.3867947 -0.07427740 -0.3370815
SlowSleep -0.39363729
2008 Dec 05
2
Help with wavCWTPeaks
I cannot understand the following error printed out when I try to get the extrema of my time series.
I would appreciate some suggestion as I really cannot interpret the error. I might not be using a proper
set of parameters in calling such functions. I am learning by doing ...
> aa.peak <- wavCWTPeaks (aa.tree)
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1",
2008 Jan 21
2
experiments with slot functions and possible problems NOTE
Hello,
first of all, thanks to LT for \pkg{codeutils}. I agree that it is
indeed very useful to identify errors and also to encourage re-thinking
past solutions. My problem:
I want to compare different sets of related sub-functions which should
be used alternatively by the same top-level function. Sets of related
functions should be bound together (as lists) and the workspace should
be as clean
2006 Dec 28
1
LU bug in Matrix package
There is a bug in Matrix package, please check it, thanks!
Matlab result:
x =
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
>> lu(x)
ans =
21.0000 22.0000 23.0000 24.0000 25.0000
0.0476 0.9524 1.9048 2.8571 3.8095
0.7619
2009 Feb 17
2
matrix output
Hi friends,
I have questions about printing a pretty big size matrix.
As you could see from below, the matrix wasn't showed in R at full size
(11X11), but it was cut partly into three smaller matrices (11X4,11X4,11X3).
I'm wondering if there is a way to show the whole matrix with dimension
11X11, do you know how to make it?
If R really couldn't fit the full big matrix at once, what
2002 May 08
1
ts acf accessing to values
Hi,
I don't quite understant how can I access to the acf values from the
list produced by the acf function
Example:
library(ts)
t <- acf(ts.union(ts(1:10), ts(11:20)))
t$acf
> tmp$acf
, , 1
[,1] [,2]
[1,] 1.00000000 1.00000000
[2,] 0.70000000 0.70000000
[3,] 0.41212121 0.41212121
[4,] 0.14848485 0.14848485
[5,] -0.07878788 -0.07878788
[6,] -0.25757576
2015 Nov 11
2
Problema con la lectura de datos
?Hola,
A mí me funciona la importación directa. Previamente he guardado la hoja de
Excel en .csv (separado por ";").
Y hago sin problemas la correlación entre dos variables (las dos primeras).
> datIn <- read.csv("Variables.csv", header=T, as.is=T, sep=";", dec=",")
> head(datIn)
EMPRESAS AA AB AC AD AE AF AG AH AI
2015 Nov 11
2
Problema con la lectura de datos
Hola.
He estado viendo los datos que adjuntas en el correo. Al ser un fichero Excel xlsx ¿por qué no lo abres directamente?
Te aconsejaría la librería openxlsx (si no la has usado nunca , instálala con install.packages(?openxlsx?))
Este es el código que he ejecutado y los resultados que obtengo:
library(openxlsx)
dat <- read.xlsx("Variables.xlsx")
str(dat)
Que produce:
2015 Nov 11
2
Problema con la lectura de datos
Si lo has guardado como csv separado por comas:
Abre con cualquier editor el fichero: mira separador de listas y
separador de decimal, supongamos que sea "; " para las listas (esto
depende de tu configuración regional) y "." para los decimales (es como
lo tienes en tu fichero)
entonces
dat<-read.csv("Variables.csv", header=T, sep=";",
2005 Jan 11
1
Standard error for the area under a smoothed ROC curve?
Hello,
I am making some use of ROC curve analysis.
I find much help on the mailing list, and I have used the Area Under the
Curve (AUC) functions from the ROC function in the bioconductor project...
http://www.bioconductor.org/repository/release1.5/package/Source/
ROC_1.0.13.tar.gz
However, I read here...
http://www.medcalc.be/manual/mpage06-13b.php
"The 95% confidence interval for
2015 Nov 11
4
Problema con la lectura de datos
Has probado con
cor(datos,use="pairwise.complete.obs")
???
> From: valeagui en outlook.es
> To: cof en qualityexcellence.es; r-help-es en r-project.org
> Date: Wed, 11 Nov 2015 15:13:55 +0000
> Subject: Re: [R-es] Problema con la lectura de datos
>
> Hola Carlos, muchas gracias....pero hago exactamente lo mismo que tu..y al intentar de hacer la matriz de
2011 Jun 17
2
Non-linear Regression best-fit line
I am trying to fit a curve to a cumulative mortality curve (logistic) where y is the cumulative proportion of mortalities, and t is the time in hours (see below). Asym. at 0 and 1
> y
[1] 0.00000000 0.04853859 0.08303777 0.15201970 0.40995074 0.46444992 0.62862069 0.95885057 1.00000000
[10] 1.00000000 1.00000000
> t
[1] 0 13 20 24 37 42 48 61 72 86 90
I tried to find starting values for
2008 Mar 08
1
ks.test troubles
Hi there!
I have two little different data. One is a computer test on people, the
other is a paper and pencil test. two boxplots show me that the data is
almost the same.
So now I'd like to know if I could handle all data as one, by testing
with ks.test:
====
> ks.test(el$angststoer, fl$angststoer)
Two-sample Kolmogorov-Smirnov test
data: el$angststoer and fl$angststoer
D =