Your first predict sets up a newdata with a column name that is not the same as
the one that you used in the lm formula. The failure to match causes R to look
in the global environment, where it finds AT.
You really should make a habit of always putting your regression data into a
data.frame
You should compare the output of str(da) with the output of str(1:10)... da is
a data.frame that contains one column (a numeric vector). Data.frames are not
numeric, they are lists of columns.
Replace da with da$ytsim1 in your call to hist.
--
Sent from my phone. Please excuse my brevity.
On
Hello,I used l to draw a figure, but I got different result (26 vs 301) when I
input the same parameters.
> length(predict(lm(A$Counts ~ AT),list(ATE=timevalues)))
[1] 26
> length(predict(lm(A$Counts ~ ATE),list(ATE=timevalues)))
[1] 301
all variables are initialized as below:
>A <-
Hi R-users,
I have a fairly simple question to ask but I havent yet got an answer to the
question. I will describe my experiment, analysis and what have I done and what
is the question in the following paragraphs and I would appreciate if anyone
could point me to use right statistical tools
I believe the error message started populating with a recent update of R or
RMS...unsure, as I tried to run an analysis with previously saved and
working code and got the same error message.
My command list:
rm(list=ls(all=TRUE))
library(boot)
library(foreign)
library(Hmisc,T)
Hi R-users,
I have a fairly simple question to ask but I havent yet got an answer to
the question. I will describe my experiment, analysis and what have I done
and what is the question in the following paragraphs and I would appreciate
if anyone could point me to use right statistical tools to
Estimada Comunidad, hice un Anova (SS III) usando la biblioteca CAR y
necesito obtener los residuos del ajuste ... el argumento de Anova fue
un modelo ajustado con glm(), como indica el siguiente codigo:
inf.ninf.glm <- glm(CH ~ pa.+lam+ps.+age+area+expo+inf+P+ppacum1mes,
data=hum[hum$CH <
Peter,
I didn't understand your codes :)
But I really seek Windows solution.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
I checked datasets,however, it is my ambiguities, I mean why there is no
Lat/Lon in pert000 and pert004 datasets, and how conncet data to each other
!!?
another question : does this package match the two entities which RMSE is
the lowest or correlation coefficient is the highest one ?!
On
I think your parameters are off. If you look at the simul data frame, it
gives you a bunch of NaNs after the first initialization. If you put lower
the timesteps s.t.
> times<-seq(0,200, by=0.01)
it begins to run but soon your values diverge, i1 & i2 going negative while
i12 goes way high. Not
Hello, I have a txt file that I import and want to plot a chartSeries of
data.My code plus the error I receive are below: (I have installed packages
TTR, fBasics, zoo, quantmod, xts)
> yt=read.table("/Users/Arslan/Documents/Econ 4140/ARModel.txt",header=T)>
> head(yt) ytsim1 3.04497412
Yo trabajo con Windows y se resuelve como indica el enlace. Versión Java 64 y
asegurar que están bien definidas la las variables de entorno. La librería Java
aquí es la clave. Me llevó un rato hacerlo pero es muy estable. Un saludo
Enviado desde mi smartphone Sony Xperia™
Fernando Macedo
No trabajo en windows, pero talvez este hilo te pueda ayudar:
http://stackoverflow.com/questions/29522088/rjava-install-error-java-home-cannot-be-determined-from-the-registry
Saludos
DMTV Fernando Macedo
Asistente del área Mejoramiento Genético
Facultad de Veterinaria - UdelarR - Uruguay
Tel:
Estimados estoy teniendo problema con el paquete XLConnect, por lo que
averigüe es un tema de 32 vs 64 ya que cambié de pc. El error es el
siguiente
Loading required package: XLConnectJars
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error:
The data commands in the example load sample data. You can run those lines
in R and look at what the sample data are set up like, if the explanations
aren't clear to you. There may also be help files specifically for the
sample data.
There's some information at
It's quite platform dependent, but this idea works for tcl/tk on Mac. I don't
think it would be too hard to do similar things on Linux, Windows may be a
bigger challenge (or not).
Peter-Dalgaards-MacBook-Air:tmp pd$ cat foo.app
#!/usr/bin/Rscript
library(tcltk)
demo(tkfaq)
I don't know about RGtk2, never tried it, but I assume it is similar to
Tcl/Tk situation: you need to open an R console to make it work.
My approach works, only because I am using the package shiny, and R's web
server can be started via a script in the terminal.
I might be wrong of course, but I
I tried Shiny using this link:
oddhypothesis.blogspot.co.uk/2014/04/deploying-self-contained-r-apps-to.html
But I got the following error in R portable:
Fatal error: unable to open base package
I checked for base package but R 3.2.3 ( latest version) doesn't have updates
for this package! So I
My function returns a RGtk2 window. It's not important if my GUI opens in a
browser, I just want to have a file that when clicked, my GUI opens.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and
I was searching a windows-based software to execute CRA(contiguous rain
area) method, I failed, but I found a R package and its example to execute
this method but I encountered some ambiguities !!
here is the example code :
data(pert000)
data(pert004)
data(ICPg240Locs)
hold <-
20 matches
Mail list logo