search for: agrsci

Displaying 20 results from an estimated 38 matches for "agrsci".

Did you mean: agci
2011 Sep 15
1
Can't get installing a package source (.tar.gz) from a web page to work...
I have created an R-package with datasets which I want my students to install (the package is not on CRAN). 1) I've put the package on the web in a directory called 'data' and I thought I could do: > install.packages("http://gbi.agrsci.dk/statistics/courses/2011-ISMLS-course/data/LiSciData_0.0-03.tar.gz",repos=NULL,type="source") Warning: invalid package 'http://gbi.agrsci.dk/statistics/courses/2011-ISMLS-course/data/LiSciData_0.0-03.tar.gz' Error: ERROR: no...
2007 Sep 07
1
contourplot lines, text, and mtext
If I have a contourplot (in the lattice package) and I want to add straight lines to it, how do I do this? I see that there are llines() and lsegement() functions for lattice plots, but they don't seem to do anything in this case: library(lattice) library(KernSmooth) x=rnorm(10000) y=x+rnorm(x,0,.5) a=bkde2D(cbind(x,y),.7) z=as.vector(a$fhat) grid=expand.grid(x=a$x1,y=a$x2) grid$z=z
2007 Jun 28
4
compare 2 vectors
Dear all, I would like to take out the values from one vector that are equal to the values in another vector. Example: a <- c(1,2,3,4,5,6,7,8,9) b <- c(3,10,20,5,6) b_noRepeats = c(10,20) So I would like to have the vector b without the same values as vector a. Kind regards, João Fadista [[alternative HTML version deleted]]
2011 Mar 04
2
glht: Problem with symbolic contrast for factors with number-levels
...work glht(motA,linfct=mcp(A=c("2 - 1 = 0 "))) #the error message is # Error in coefs(ex[[3]]) : # cannot interpret expression '1' as linear function #works glht(motB,linfct=mcp(B=c("f - e = 0"))) regards Ulrich Halekoh Aarhus University e-mail: Ulrich.Halekoh at agrsci.dk I use R.2.12.2, package version of multcomp : 1.2-5
2011 May 02
1
Problems with Rterm 2.13.0 - but not RGui
Hi all, I have just installed R 2.13.0 and I am experiencing problems with the terminal, but not the with the GUI interface. I am Windows 7. When running "R" or "Rterm" from a commandline I receive the following: Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path[3]="C:/Programmer/R/R-2.13.0/library": Adgang n?gtet R
2004 Feb 24
1
rstandard does not produce standardized residuals
...R 1.8.1 on windows 2000 ulrich ============================================================== Ulrich Halekoh, PhD Phone: +45 8999 1825 Biometry Research Unit Fax: +45 8999 1300 Danish Institute of Agricultural Sciences E-mail: ulrich.halekoh at agrsci.dk Research Centre Foulum, DK-8830 Tjele, Denmark
2011 Sep 05
0
glht (multcomp): NA's for confidence intervals using univariate_calpha (fwd)
fixed @ R-forge. New version should appear on CRAN soon. Thanks for the report! Torsten > > ---------- Forwarded message ---------- > Date: Sat, 3 Sep 2011 23:56:35 +0200 > From: Ulrich Halekoh <Ulrich.Halekoh at agrsci.dk> > To: "r-help at r-project.org" <r-help at r-project.org> > Subject: [R] glht (multcomp): NA's for confidence intervals using > univariate_calpha > > Hej, > > Calculation of confidence intervals for means > based on a model fitted with lmer &g...
2005 Jun 19
1
How to sample from a linear mixed model
I would like to draw a sample from a linear mixed model y=Xb+Zu+e which has been fitted with lme(), i.e. a model y ~ N(Xb, C), where C=Z cov(u) Z' + cov(e). I've tried to figure out how to extract C from an lme object, because that would solve my problem when also using the predict() function, but without any luck. Can anyone help on that?
2008 Feb 15
1
How to estimate the parameters of differential equations from data
Hello list I have a theoretical differential equation model (two coupled differential equations) describing the acidification of dairy cultures in milk: dX/dt = f(H, param)*X dH/dt = g(param)*dX/dt pH = -log10(H) I also have actual data of the same. I would like to estimate the parameters of the theoretical model from real data, but don't know how to go about it in R (I'm
2007 Aug 07
2
R and excell differences in calculation F distributionfunction
R-help, I'm trying to work out the density function by doing: > df(5.22245, 3, 22) [1] 0.005896862 > df(15.20675, 6, 4) [1] 0.001223825 In excell the result is : 0.0071060464 <*> FDIST(5.22245,3,22) 0.0100001406 <--> FDIST(15.20675,6,4) >From my point of view the differences in the second case are substantial. Can anyone give me a hint on this? Thanks in
2008 Jun 03
3
matlab eigs function in R
Hello Does anybody know how one can compute d largest eigenvalues/eigenvectors in R, like in MATLAB eigs function ? eigen function computes all eigenvectors/eigenvalues, and they are slightly different than those generated by matlab eigs. Thanks in advance -- View this message in context: http://www.nabble.com/matlab-eigs-function-in-R-tp17619641p17619641.html Sent from the
2004 Apr 12
0
new version of gregmisc package
...er than the requested width to be present at the front, the back, or on both sides of the full lenth sequences. This allows one to align the data so that the window is before, after, or around the indexed point. - Add enhancements to estimable() provided by S??ren H??jsgaard <sorenh at agrsci.dk>: The estimable function now 1) also works on geese and gee objects and 2) can test hypotheses af the forb L * beta = beta0 both as a single Wald test and row-wise for each row in L. - Add colorpanel function, which generates a smoothly varying band of colors over a three color...
2004 Apr 12
0
new version of gregmisc package
...er than the requested width to be present at the front, the back, or on both sides of the full lenth sequences. This allows one to align the data so that the window is before, after, or around the indexed point. - Add enhancements to estimable() provided by S??ren H??jsgaard <sorenh at agrsci.dk>: The estimable function now 1) also works on geese and gee objects and 2) can test hypotheses af the forb L * beta = beta0 both as a single Wald test and row-wise for each row in L. - Add colorpanel function, which generates a smoothly varying band of colors over a three color...
2006 Jul 06
1
Rgraphviz: Setting the edge width
I create an undirected graph with Rgraphviz (see code below). I would like to make the edges thicker. Can anyone help on this?? Regards S?ren V <- c("A","B","C","D") E <- list(c("A","B"),c("B","C"),c("C","D"),c("D","A"),c("A","C")) Eidx
2009 Jan 12
0
Problems with RMySQL and MySQL server version 5.1
...Jeffrey Horner wrote: > An FYI to those users having problems with windows RMySQL CRAN binaries. > > -------- Original Message -------- > Subject: Problems with RMySQL and MySQL server version 5.1 > Date: Wed, 7 Jan 2009 09:12:56 +0100 > From: Erik J?rgensen <Erik.Jorgensen at agrsci.dk> > To: jeff.horner at vanderbilt.edu > > Hi Jeffrey > > I have some problems with the use of RMySQL since upgrading to RMySQL > version 0.7-2 and MySQL server version 5.1. The RGUI crashes, when I > e.g. call the function dbGetQuery(conn, sqlstring) (but not e.g. > d...
2009 Jun 01
2
Creating a plot with an image as background
I want to create a plot of positions (x(t),y(t)) of animals in a barn for t=1,2,... (I have in mind creating many of these, saving them as png's and combining them into a small movie). I have an image file showing the physical layout of the barn, and I would like to have that image as background for the plots. Can that be done in R (easily) or is that something I should do outside of R using
2005 Jul 04
2
Problems with eval() in connection with match.call()
Dear all, I have a problem when passing parms from one function to another when the argument list is just '...'. Consider this example: foo<-function(){ xx <- 111222 bar(x=xx) } bar <- function(...){ cl <- match.call(expand.dots=TRUE) print(cl) x <- eval(cl$x) print(x) } foo() > bar(x = xx) > Error in eval(expr, envir, enclos) : Object "xx" not
2009 Nov 09
4
lectura de archivos en formato SAS
Hola. yo soy usuario SAS y ahora estoy intentando comenzar a trabajar en R. Estoy necesitando leer archivos de datos que tengo en formato SAS. Se que esta el package foreing que permite leer directamente datos que se encuentran en ese formato. Alguien podria indicarme como lo debo hacer. Solo quiero leer algunas variables dado que el archivo es extenso. Muchas gracias. Silvia.
2011 Apr 07
1
Quasipoisson with geeglm
Dear all, I am trying to use the GEE methodology to fit a trend for the number of butterflies observed at several sites. In total, there are 66 sites, and 19 years for which observations might be available. However, only 326 observations are available (instead of 1254). For the time being, I ignore the large number of missing values, and the fact that GEE is only valid under MCAR. When I run the
2006 Aug 26
5
Type II and III sum of square in Anova (R, car package)
Hello everybody, I have some questions on ANOVA in general and on ANOVA in R particularly. I am not Statistician, therefore I would be very appreciated if you answer it in a simple way. 1. First of all, more general question. Standard anova() function for lm() or aov() models in R implements Type I sum of squares (sequential), which is not well suited for unbalanced ANOVA. Therefore it is better