similar to: Extracting elements from an reStruct

Displaying 20 results from an estimated 1000 matches similar to: "Extracting elements from an reStruct"

2003 Mar 04
2
How to extract R{i} from lme object?
Hi, lme() users, Can some one tell me how to do this. I model Orthodont with the same G for random variables, but different R{i}'s for boys and girls, so that I can get sigma1_square_hat for boys and sigma2_square_hat for girls. The model is Y{i}=X{i}beta + Z{i}b + e{i} b ~ iid N(0,G) and e{i} ~ iid N(0,R{i}) i=1,2 orth.lme <- lme(distance ~ Sex * age, data=Orthodont, random=~age|Subject,
2002 Jan 01
3
confidence ellipsoid for model parameters
Dear all, Has anyone written functions to compute (and ideally project / plot onto a plane) confidence ellipsoids for q linear model parameters, q > 2 ? Greetings and best wishes, Renaud -- Dr Renaud Lancelot, v?t?rinaire CIRAD, D?partement Elevage et M?decine V?t?rinaire (CIRAD-Emvt) Programme Productions Animales http://www.cirad.fr/presentation/programmes/prod-ani.shtml ISRA-LNERV
2002 Nov 08
3
Windows binary for R 1.6.1 FIXED
To Windows R users: The binary build of R that I uploaded on Tuesday contained errors in the compiled HTML help files and some of the PDF versions of the manuals. In particular, the index was missing from the CHM files, and the table of contents was missing from at least one of the manuals. I've since found the error in my setup, and have rebuilt the distribution. I uploaded it to CRAN
2002 Nov 08
3
Windows binary for R 1.6.1 FIXED
To Windows R users: The binary build of R that I uploaded on Tuesday contained errors in the compiled HTML help files and some of the PDF versions of the manuals. In particular, the index was missing from the CHM files, and the table of contents was missing from at least one of the manuals. I've since found the error in my setup, and have rebuilt the distribution. I uploaded it to CRAN
2002 May 07
2
problem with package binaries
> version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 5.0 year 2002 month 04 day 29 language R OS Win98 I have problems to install some of the packages dowloaded from CRAN (whatever the
2009 Feb 20
1
NOT an R problem: cannot install packages from distant repository
I met today a computer crash and our maintenance officer had to reinstall some components of the OS (MS Windows XP Pro) as well as the Internet browser (among other things). Now, I cannot install packages from a distant repository: > utils:::menuInstallPkgs() Error in .readRDS(pfile) : unknown input format > traceback() 5: .readRDS(pfile) 4: .packages(all.available = TRUE) 3:
2002 May 29
1
graphics in help files
Dear all, platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status Patched major 1 minor 5.0 year 2002 month 05 day 15 language R Is there a way to include a graph in a help file (Rd file processed with make pkg-mypkg) ? Thanks in advance, Renaud -- Dr
2003 May 29
1
surfaces and digital terrain model
Dear all, I have computed a digital terrain model from a set of points (x, y, z) using the function interp() in package akima. I want to predict flooded surfaces given target values of z. I can display the flooded surfaces with contour() or image(), but I don't know how to get the polygons delimiting the surfaces. Did anyone write a function for this purpose ? Best regards, Renaud --
2006 Jun 04
2
evaluation of the alternative expression in ifelse
Dear all, I am trying to avoid the warnings produced by: > x <- -2:2 > log(x) [1] NaN NaN -Inf 0.0000000 0.6931472 Warning message: production de NaN in: log(x) I thought that using ifelse would be a solution, but it is not the case: > ifelse(test = x < 0, yes = NaN, no = log(x)) [1] NaN NaN -Inf 0.0000000 0.6931472 Warning message: production
2003 May 01
4
var[i]
Dear all, How could I use variables in a loop that their names are in a vector? For example: aaa <- 1:10 bbb <- aaa*2 ccc <- aaa+bbb varn <- c("aaa", "bbb", "ccc") m <- rep(NA, 3) for (i in 1:length(varn)) m[i] <- mean(varn[i]) # wrong thanks in advance Juli -- "Wars do not solve problems, wars generate even more problems"
2006 Aug 21
1
Fwd: Re: Finney's fiducial confidence intervals of LD50
thanks a lot Renaud. but i was interested in Finney's fiducial confidence intervals of LD50 so to obtain comparable results with SPSS. But your reply leads me to the next question: does anybody know what is the best method (asymptotic, bootstrap etc.) for calculating confidence intervals of LD50? i could "get rid" of Finney's fiducial confidence intervals but
2002 May 24
5
intersecting polygons and conversion from decimal degree to km
Dear all, 1. How can I compute the intersecting area between 2 polygons ? 2. I have polygons with coordinates in decimal degrees (i.e. 13 deg 30 min = 13.5 decimal degrees). I want to compute their area and get the results in square meters or square kiometers. Can anyone give me a conversion coefficient or a pointer where I can find this information (sorry for this off topic question) ? Thanks
2002 Mar 10
1
lattice library: xyplot and polygons
Dear R-Helpers, Is there a way to draw shaded (filled) polygons in panel graphs produced by xyplot ? I made different trials (see below) with polygon() and grid.polygon() but polygons are not drawn (probably for the same reason that prevents the use of lines, points, etc. in xyplot panels). Thanks in advance, Renaud > Water id label longitude latitude 515 21 Zone inondable
2009 Nov 12
1
Reading a data file one record at a time [SEC=UNCLASSIFIED]
Dear r-help, I have a radar data file in the following format: nrays for (1 to n_rays) { some_data_info for (1 to n_gates) { some_data_info} } N_rays=360 and n_gates=950 The data looks something like: Header line1 Ray1 header gate1 var1, var2,.....,varN ... gate950 var1, var2,.....,varN Ray2 header gate1 var1, var2,.....,varN ...
2003 Apr 25
2
Posix data in Lattice
I have a number of plots that I'm trying to do using the lattice package, unfortunately, they involve Posix values. A small sample of the data is as follows: Time TC.1 <Snipped> 1 2003-04-24 13:29:15 26.61 2 2003-04-24 13:29:30 26.48 3 2003-04-24 13:30:00 26.53 4 2003-04-24 13:30:30 27.85 <Snipped> where str(data) `data.frame': 415 obs. of
2010 Oct 16
1
Binaries of R.12.0 for Windows: where are RGUI and Rterm ?
Dear all, I've just downloaded R.12.0 from CRAN (http://cran.r-project.org/bin/windows/base/release.htm). I am unable to find RGUI.exe as well as Rterm.exe. Conversely to what is explained in readme.R.2.12.0: There are two versions of the R executable in R-2.12.0\bin\i386 (32-bit) or R-2.12.0\bin\x64 (64-bit). I can't find directories i386 or x64 in R-2.12.0\bin -- Renaud Lancelot EDEN
2002 Apr 18
1
Help with lme basics
In Baron and Li's "Notes on the use of R for psychology experiments and questionnaires" http://cran.r-project.org/doc/contrib/rpsych.htm they describe a balanced data set for a drug experiment: "... a test of drug treatment effect by one between-subject factor: group (two groups of 8 subjects each) and two within-subject factors: drug (2 levels) and dose (3 levels). "
2002 Aug 01
1
question about AIC
Please, forgive my ignorance on statistics, but I have a rather simple question concerning AIC. Small values of AIC mean good fit of the model. How about negative values of AIC? Is a model with AIC=0.5 considered to have better fit than a model with AIC=-500? I couldn't find anything explaining this in the documentation or any elementary statistics textbook that I have at my disposal. Thanks
2002 Jun 05
1
R-patched for Windows
I've put up a build of the current R-patched (and updated recommended packages) for Windows at http://www.stats.ox.ac.uk/pub/bdr/RWin/Rpre/SetupRpatched.exe This should be able to rename files on Win 9x (unlike the mid-May build) and can build packages accessing Rblas.dll. As ever, this is less tested than an official release, in particular only on Windows XP, but ought to have fewer
2010 Oct 18
1
R 2.12.0 for Windows: error when loading (some) packages
Dear all, I have installed the latest version of R 2.12.0 available on CRAN (http://cran.r-project.org). When I try to load the recommended package lattice: > library(lattice) Error: package 'lattice' is not installed for 'arch=i386' I am running Rgui using C:\R\R-2.12.0\bin\i386\Rgui.exe --vanilla > sessionInfo() R version 2.12.0 (2010-10-15) Platform: