Displaying 20 results from an estimated 10000 matches similar to: "converting character string to an expression"
2003 Dec 18
3
mclust - clustering by spatial patterns
Dear All,
I have spatial data (presence/absence for 4000 squares) on 250 bird
species and would like to use a model-based clustering technique to
test for species associations. Is there any way of passing a
distance/correlation matrix to mclust as with hclust, rather than the
actual data? Or alternatively, is there a way of getting mclust to
handle binary data?
I'd appreciate any
2007 Dec 03
1
linking C/C++ external libraries.
Hi Everyone,
I'm trying to load some C++ code using dyn.load but I'm getting
unresolved symbols associated with some external libraries
(CSparse). I gather this is something to do with linking as the the
code compiles fine. However, I've passed
-L/home/jarrod/My_Programs/SuiteSparse/CSparse/Lib -lcsparse
to the complier (g++), either directly using R CMD SHLIB or as
2008 Dec 28
1
model.matrix and missing values
Hi,
Does anyone know an easy way of retaining rows in a model.matrix where
missing values are present in the predictors. Ideally I'd be able to
retain these rows as zeros.
Thanks,
Jarrod
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
2006 Feb 08
1
nested random effects in glmm.admb
Hello all,
In a previous posting regarding glmm.admb it is stated that glmm.admb
can handle 2 nested random effects. I can only fit a single random
term at the moment, and wondered if anyone could provide me with some
information on how to specify a model with 2 (nested or
cross-classified) random terms?
Thanks,
Jarrod.
2003 Jul 22
2
animal models and lme
Hi,
You should look at Pinheiro and Bates (2000) Mixed-effects models in S and S-Plus. It describes how to format the correlation matrix to pass to functions lme and gls. Basically, the correlation matrix has to be one of the corStruct classes, probably corSymm for your example. So in the call to lme (or gls if you really have no random effects), use something like:
2013 Feb 09
1
Swaeve, Beamer and \alt
Hi,
I am having trouble getting \alt (or \altenv) to work with
Schunk/Sinput and was wondering if anybody had had success? With the
slide
\begin{frame}[fragile]\frametitle{Basic R}
\alt<2>{
<<echo=TRUE>>=
2+2
@
}{
<<echo=TRUE, eval=FALSE>>=
2+2
@
}
\end{frame}
I get the error message:
! FancyVerb Error:
Extraneous input `> 2+2 \end {Sinput} \end
2014 Mar 17
1
valgrind and C++
Hi,
I am sorry if this is perceived as a C++ question rather than an R
question. After uploading an R library to CRAN (MCMCglmm) the C++ code
failed to pass the memory checks. The errors come in pairs like:
Mismatched free() / delete / delete []
at 0x4A077E6: free (vg_replace_malloc.c:446)
by 0x144FA28E: MCMCglmm (MCMCglmm.cc:2184)
Address 0x129850c0 is 0 bytes inside a block of size 4
2003 Dec 01
1
matrix bending
Dear All,
I was wondering whether any one knows of a matrix bending function in
R that can turn non-positive definite matrices into the nearest
positive definite matrix. I was hoping there would be something akin
to John Henshall's flbend program
(http://agbu.une.edu.au/~kmeyer/pdmatrix.html), which allows the
standard errors of the estimated matrix elements to be considered in
the
2007 Jan 03
1
problem with logLik and offsets
Hi,
I'm trying to compare models, one of which has all parameters fixed
using offsets. The log-likelihoods seem reasonble in all cases except
the model in which there are no free parameters (model3 in the toy
example below). Any help would be appreciated.
Cheers,
Jarrod
x<-rnorm(100)
y<-rnorm(100, 1+x)
model1<-lm(y~x)
logLik(model1)
sum(dnorm(y, predict(model1),
2009 Feb 20
2
change attributes of all data.frame elements
Hi,
I was wondering whether there was an easy way to change the attributes
of all elements in a data.frame (rather than looping through elements)?
Specifically, I would like to set the "dim" attributes to NULL
Thanks for any help,
Jarrod
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
2018 Mar 23
0
MCMCglmm multinomial model results
> On Mar 22, 2018, at 1:31 PM, Michelle Kline <michelle.ann.kline at gmail.com> wrote:
>
> Hi,
>
> Thanks in advance for any help on this question. I'm running multinomial
> models using the MCMCglmm package. The models have 5 outcome variables
> (each with count data), and an additional two random effects built into the
> models. The issue is that when I use
2014 Mar 14
1
Conditional jump or move depends on uninitialised value(s)
Hi,
I'm using valgrind to check over some C/C++ code for an R library. I'm
getting the report (see below), but can't track down the uninitialised
value(s). I tried using --track-origins=yes in valgrind which gives:
==28258== Uninitialised value was created by a stack allocation
==28258== at 0xEE33D98: ??? (in /usr/lib64/R/lib/libRlapack.so)
I presume the problem is an
2018 Mar 24
1
MCMCglmm multinomial model results
Hi David,
Thanks for your comment. I haven't posted the data because they are
unpublished and include human subjects so there are issues with sharing on
a list serv, but I thought perhaps someone had encountered a similar
problem and would already know the answer.
I will reconsider whether my University's ethics approval would allow me to
post the data and update the question if I think
2018 Mar 22
2
MCMCglmm multinomial model results
Hi,
Thanks in advance for any help on this question. I'm running multinomial
models using the MCMCglmm package. The models have 5 outcome variables
(each with count data), and an additional two random effects built into the
models. The issue is that when I use the following code, the summary only
gives me results for four of the outcome variables.
Here is the code for my model:
m3.random
2017 Jun 27
2
paste strings in C
Dear R-devs,
Below is a small example of what I am trying to achieve, that is trivial in
R and I would like to learn how to do in C, for very large matrices:
> (mymat <- matrix(c(1,0,0,2,2,1), nrow = 2))
[,1] [,2] [,3]
[1,] 1 0 2
[2,] 0 2 1
And I would like to produce:
[1] "a*C" "B*c"
Which can be trivially done in R via something like:
foo
2010 Jul 27
1
R CMD build wiped my computer
Hi,
I ran R (version 2.9.0) CMD build under root in Fedora (9). When it
tried to remove "junk files" it removed EVERYTHING in my local
account! (See below).
Can anyone tell me what happened, and even more importantly if I can I
restore what was lost.
Panickingly,
Jarrod
[jarrod at localhost AManal]$ R CMD build MCMCglmm_2.05
* checking for file
2010 Jul 27
1
R CMD build wiped my computer
Hi,
I ran R (version 2.9.0) CMD build under root in Fedora (9). When it
tried to remove "junk files" it removed EVERYTHING in my local
account! (See below).
Can anyone tell me what happened, and even more importantly if I can I
restore what was lost.
Panickingly,
Jarrod
[jarrod at localhost AManal]$ R CMD build MCMCglmm_2.05
* checking for file
2004 Jul 27
2
Incorrect display of b[hat((a))] expression in plots
Hi, I am not sure if this is a bug or a non-implement feature of
text-drawing functions with TeX-style expression, but hat() and some of its
equals does not get the right "bounding boxes" if they are put in sub- or
superscripts. For instance, for the expression 'b[hat(a)]' the hat() seems
to shift 'hat(a)' too much to the right of 'b'. Try the below example and
2010 Jul 27
1
R CMD build wiped my computer
Hi,
I ran R (version 2.9.0) CMD build under root in Fedora (9). When it
tried to remove "junk files" it removed EVERYTHING in my local
account! (See below).
Can anyone tell me what happened, and even more importantly if I can I
restore what was lost.
Panickingly,
Jarrod
[jarrod at localhost AManal]$ R CMD build MCMCglmm_2.05
* checking for file 'MCMCglmm_2.05/DESCRIPTION'
2016 May 18
2
SGID bit not obeyed in 4.3.9?
> On May 18, 2016, at 2:38 PM, Rowland penny <rpenny at samba.org> wrote:
>
> On 18/05/16 19:44, Smith, Jarrod A wrote:
>> We just upgraded to 4.3.9 (from 4.1.x) and are experiencing a few issues/differences around permissions on files written from Windows clients authenticated from winbind/AD. One specific issue that we have is directories with permissions like:
>>