search for: jsgaard

Displaying 20 results from an estimated 106 matches for "jsgaard".

Did you mean: asgaard
2004 Aug 27
3
Reading SAS data into R
...hing close to that..). The dataset is so large, that exporting it as an Excel file from SAS is not feasible (more than 65000 lines). I am reluctant to ask her to go through all the data base steps (then she'll just stick to SAS...). Can anyone help me out on that one? Thanks in advance Søren Højsgaard [[alternative HTML version deleted]]
2004 May 04
2
Seeing the definition of a function
...:stats> does not really enlighten me. How can I get to see the implementation (I guess it should be possible according to the general philosophy of the R project)? Thanks in advance S??ren ============================================================================================= S??ren H??jsgaard, PhD, Head of Research Unit Phone: +45 8999 1703 Biometry Research Unit, Fax: +45 8999 1300 Danish Institute of Agricultural Sciences E-mail: sorenh at agrsci.dk Research Centre Foulum, DK-8830 Tjele, Denmark Homepage : http://www.jbs.agrsci.dk/~sorenh/
2005 Jun 20
2
Fwd: How to sample from a linear mixed model
Thanks. I wonder if there is a general way of extracting var(u) and var(e), which would be needed to simulate u and e. Clearly, one can get the estimated parameters, but is there a clever way of 'setting up' the matrices?? Best S??ren On 6/19/05, S??ren H??jsgaard <Soren.Hojsgaard at agrsci.dk> wrote: > 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...
2005 Jul 12
10
Computer algebra in R - would that be an idea??
...people around the World, but perhaps some other people from the R-community do and would be able to/interested in establishing such a connection... Just and idea; comments appreciated :-) S?ren ============================================================================================= S?ren H?jsgaard, MSc, PhD (Statistics), Phone: +45 8999 1703 Head of Statistics and Decision Theory Research Group, Fax: +45 8999 1300 Danish Institute of Agricultural Sciences sorenh at agrsci.dk Research Centre Foulum, DK-8830 Tjele, Denmark http://genetics.agrsci.dk/...
2010 Nov 26
3
Calling substitute(expr, list(a=1)) when expr <- expression(a+b+c)
# The result I am after is the result after a substitution in an expression, such as substitute(expression(a+b+c), list(a=1)) expression(1 + b + c) # However, the way I want to do it is for a an expression "stored as a variable" as (expr <- expression(a+b+c)) expression(a + b + c) # a) The following does not work (expr2 <- substitute(expr, list(a=1))) expr # b) - whereas this
2004 Jun 05
2
'invalid HOMEDRIVE'
Dear all, One of my students have installed R1.9.0 on windows, and gets the fatal error 'invalid HOMEDRIVE' Can anyone help her/me out on that one? Thanks in advance Søren Højsgaard [[alternative HTML version deleted]]
2012 Aug 08
2
Having both R-current and R-devel installed on Ubuntu
...like to have both the current version of R and R-devel installed. I've searched the net for info on doing this but so far without luck. Can anyone help me getting this up and running? A related question: How do I upgrade the current version of R to the patched versions? Best regards S?ren H?jsgaard
2001 Aug 23
3
Reading SAS version 8 data into R
Hi, SAS transport files created with the xport engine in SAS can be read using read.xport. However, the xport engine only works with SAS version 6, and consequently long variable names are not allowed... Can anyone tell me how to get SAS data (ver 8) into R (easily)? Thanks in advance S?ren H?jsgaard sorenh at agrsci.dk http://www.jbs.agrsci.dk/~sorenh ------------------------------------------------------------------------- Time flies like an arrow, fruit flies like a banana. ------------------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2002 Dec 09
2
R as a COM client - is it possible?
...call.ole.method release.ole.object for communicating with other programs which work as a COM server (on Windows). Is it possible to do something similar in R (I've studied the 'connections' facilities, but they do not seem to work). ========================================== S?ren H?jsgaard, PhD, Senior Scientist Biometry Research Unit Danish Institute of Agricultural Sciences Research Centre Foulum, DK-8830 Tjele, Denmark Phone: +45 8999 1703 E-mail : sorenh at agrsci.dk Homepage : http://www.jbs.agrsci.dk/~sorenh/
2001 Dec 06
2
Contrasts in lm
Dear all, In SAS (GLM and MIXED) estimable functions (linear functions of the parameters) can be specified in the ESTIMATE and CONTRAST statements. Has anyone written a similar "utility" for use in connection with lm? Thanks in advance S?ren H?jsgaard -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat...
2006 Jan 13
2
Saving data in an R package - how to maintain that t avariable is a 'factor' when it is coded as 1, 2, 3...
...ta from the package the first four columns are read in as numeric variables. This is consistent with the documentation of read.table - but it is not what I want! I can of course change the coding of the variables, but there ought to be another way. Can anyone help me on that? Best regards S??ren H??jsgaard
2007 Dec 06
3
$ operator is invalid for atomic vectors, returning NULL - what is the right thing to do then?
Dear all, Starting from a recent version of R, the $ became "unusable" on atomic vectors, e.g. > x <- c(a=1,b=2) > x$a NULL Warning message: In x$a : $ operator is invalid for atomic vectors, returning NULL I can of course do > x['a'] - but that requires more typing (5 characters rather than 2). Apologies if I've missed a an announcement regarding this, but
2006 Oct 05
3
How to get the function names
I've defined the function getFunNames <- function(FUN){ if (!is.list(FUN)) fun.names <- paste(deparse(substitute(FUN)), collapse = " ") else fun.names <- unlist(lapply(substitute(FUN)[-1], function(a) paste(a))) fun.names } which gives what I want : > getFunNames(mean) [1] "mean" > getFunNames(ff) [1] "ff" >
2005 Jul 31
3
Drawing a graph with vertices and edges using tcl/tk
Dear all; I would like to draw a graph with vertices and edges, and I guess tcl/tk would be appropriate. I don't know tcl/tk but have googled for a 10-page (or so) introduction to 'getting started with tcl/tk in R' but without any luck. - Does anyone know of the existence of such a document or any other web-based material on the subject? - Does anyone have an (informative) piece of
2003 Oct 30
0
loglm() uses only a reference to data, and not data itsel f - is that on purpose??
...really huge data set (the kind that loglm() was designed to handle, after all) do you really want to be carting around several copies of it around in memory? That said, do you have a suggested patch that might accommodate this refinement? Bill Venables. -----Original Message----- From: S?ren H?jsgaard [mailto:Soren.Hojsgaard at agrsci.dk] Sent: Thursday, October 30, 2003 8:10 AM To: r-help at stat.math.ethz.ch Subject: [R] loglm() uses only a reference to data, and not data itself - is that on purpose?? Dear all, Consider the following: library(MASS); data(HairEyeColor) l1 <- loglm(~ 1+2+...
2006 Feb 22
2
How can I see how %*% is implemented?
I would like to see how the matrix multiplication operator %*% is implemented (because I want to see which external Fortran/C routines are used). How can I do so? Best S??ren
2006 Apr 04
2
xyplot: getting data into the panel function
In xyplot, I would like to get the "data into the panel function" in the following sense: Consider xyplot(scc~time|cowidp, data=cow.s,type=c("l"), panel=function(x,y,subscripts,...){ panel.xyplot(x,y,...) vvv<-cow.s[which(!is.na(cow.s[subscripts,"mastreat"])),"time"] panel.abline(v=vvv,col="red",lwd=2) } ) If I want to use a
2006 Aug 29
2
lattice/xyplot: plotting 4 variables in two panels - can this be done?
Hi, I would like to create a plot of y1,y2,y3,y4 against x for several subjects such that y1 and y2 are plotted against x in one panel and y3 and y4 against x in another panel. Thus if there are 3 subjects I should end up with 6 panels. Is there a simple way of doing so (i.e. without calling xyplot() several times, and then padding the results together)?? Regards S?ren
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?
2005 Jun 13
1
Error in load(zfile, envir = envir) : input has been corrupted, with LF replaced by CR
...rce files installing indices Error in load(zfile, envir = envir) : input has been corrupted, with LF replaced by CR Execution halted make[2]: *** [indices] Error 1 make[1]: *** [all] Error 2 ============================================================================================= S?ren H?jsgaard, MSc, PhD (Statistics), Phone: +45 8999 1703 Head of Statistics and Decision Theory Research Group, Fax: +45 8999 1300 Danish Institute of Agricultural Sciences sorenh at agrsci.dk Research Centre Foulum, DK-8830 Tjele, Denmark http://genetics.agrsci.dk/...