Displaying 20 results from an estimated 3000 matches similar to: "R - need more memory, or rejection sampling algorithm doesn't work?"
2005 Nov 09
8
Element-by-element multiplication operator?
Is there an element-by-element multiplication in R, like the .* operator in Matlab?
eg: A (2x3)
B (2x3)
C=A.*B
C (2x3)
C = [[a11*b11 a12*b12 a13*b13]; [a21*b21 a22*b22 a23*b23]]
I can't find one...
Thanks
-Mike Gates
2012 Feb 16
2
how to rbind matrices from different loops
Dear R experts,
I am having difficulty using loops productively and would like to please
ask for advice. I have a dataframe of ids and groups. I would like to
break down the dataframe into groups, find the unique sets of ids, then
reassemble. My thought was to use a loop, but I have been unable to finish
this loop in a logical way. I would like to find the unique ids for group
1, group 2,
2007 Mar 10
3
long character string problem
Hi All
I am having 2 very long character strings (550chars) and I want to put them as
expressions together with c(). The problem is that I also get these
double-quotes, as seen below in 'fct'. How can I remove these double-quotes? I
tried as.name() but it did not work (because of size?). These are creating
trouble with subsequent programs, which I tested with strings that for some
2008 Nov 29
2
Reading mixed tables
Dear R buddies,
This weekend I became interested in solving Google Code Jam problems
using R. I guess R may work very well in this kind of contests but the
input of file has been a problem for me. Take this case for example
(http://code.google.com/codejam/contest/dashboard?c=agdjb2RlamFtchALEghjb250ZXN0cxjRzBQM),
the files are usually of the form:
A(number of lines for group 1)
a11 a12 a13
a21
2007 May 24
3
Problem with numerical integration and optimization with BFGS
Hi R users,
I have a couple of questions about some problems that I am facing with
regard to numerical integration and optimization of likelihood
functions. Let me provide a little background information: I am trying
to do maximum likelihood estimation of an econometric model that I have
developed recently. I estimate the parameters of the model using the
monthly US unemployment rate series
2008 Sep 09
1
creating table of averages
Dear Colleagues,
I have a dataframe with variables:
[1] "ID" "category" "a11" "a12"
"a13" "a21"
[7] "a22" "a23" "a31" "a32"
"b11" "b12"
[13] "b13" "b21"
2010 May 27
1
stripplot, lattice
hello,
i can't figure out how to set position of panels of my stripplot -
i`d like the panels of one level of the factor stage (nr. of panels within
each stage, A: 12, B: 12, C: 12, D: 4, each panel representing a site) to be
in one column, with A to D from left to right and with descending site.nr at
each row.
like:
A1 B1 C1 D1
A2 B2 .. ..
A3 .. ..
..
how is this achieved?
any help
2008 Jan 04
1
Compile error introduced in b13 (Solaris 10)
Any news on the b13 compile issue on Solaris 10 (both Sparc and X86)?
Would be nice to know whether it's our own headache or something thats not
supposed to be and thus expected to be fixed in the next release.
Just to be clear this didn't occur in any other release (I've compiled all
previous v1.1 betas on the same setup including b12).
Ref.:
2010 Feb 04
1
Bug in as.character? (PR#14206)
A long formula which is converted using as.character, looses its last
part: ``diagonal = 1e-12)''
Shorter formula is ok though.
Best,
H??vard
************
Browse[2]> formula.str
y ~ -1 + b1 + b2 + b3 + b4 + b5 + b6 + b7 + b8 + b9 + b10 + b11 +
b12 + b13 + b14 + b15 + b16 + b17 + b18 + b19 + b20 + b21 +
b22 + b23 + b24 + b25 + b26 + b27 + b28 + b29 + b30 + b31 +
b32 +
2006 Dec 31
7
zero random effect sizes with binomial lmer
I am fitting models to the responses to a questionnaire that has
seven yes/no questions (Item). For each combination of Subject and
Item, the variable Response is coded as 0 or 1.
I want to include random effects for both Subject and Item. While I
understand that the datasets are fairly small, and there are a lot of
invariant subjects, I do not understand something that is happening
2010 Apr 05
3
bootstrap confidence intervals, non iid
hello,
i need to calculate ci's for each of 4 groups within a dataset, to be able
to infere about differences in the variable "similarity". the problem is
that data within groups is dependent, as assigned by the blocking-factor
"site". my guess was to use a block bootstrap but samples within in these
blocks / sites are not of same length. i was not able to find a method to
2006 Apr 13
3
Penalized Splines as BLUPs using lmer?
Dear R-list,
I?m trying to use the lmer of the lme4 package to fit a linear mixed model
of the form
Y = Xb + Zu + e
and I can?t figure out how to control the covariance structure of u. I want
u ~ N(0,sigma^2*I).
More precisely I?m trying to smooth a curve through data using the
"Penalized Splines as BLUPs" method as described in Ruppert, Wand &
Carroll (2003).
So I have Z = [Z1
2010 Apr 12
3
glmer with non integer weights
hello,
i'd appreciate help with my glmer.
i have a dependent which is an index (MH.index) ranging from 0-1. this index
can also be considered as a propability. as i have a fixed factor (stage)
and a nested random factor (site) i tried to model with glmer. i read that
it's possible to use a quasibinomial distribution, for this kind of data,
which i than actually did - but firstly
(1)
2013 Mar 01
0
XCP 1.6 don’t pass throug all traffic to (tpcdump) snort
Hi all,
I have been troubled with the traffic flow on the XCP 1.6 and XCP 0.5.
- I have 4 servers in VLAN2 on port b12,b13,b14,b15 (these servers work
on a XCP 0.5)
- on port a3 have have mirrort al ports from a1,a2,a4-b24
- have a other HP server with XCP1.6 with (Debian 6.0.6 as host) and
install snort. this has 2 eth carts in it. Eth0 is plugt in the VLAN2
network and
2002 Apr 05
0
[Fwd: [Netjuke-users] getid3 dev on a coding spree...]
Just in case any enterprising souls out there feel up to the challenge
of determining play time and bitrate average for Ogg Vorbis files via
PHP, I send along this message from the programmer of the NetJuke
project. (http://netjuke.sourceforge.net)
--
Karel P Kerezman, IS Admin Entercom Portland
http://greyduck.net
[ A diplomat thinks twice before saying nothing. ]
<strong>attached
2009 Jul 30
4
edit.row.names taking row names from the edited dataframe
Hi all,
I am struggling to work out how to use the rownames from an edited dataframe
rather than the row names from the original dataframe. In my data set i'm
trying to extract several rows of data on particular individuals, i don't
doubt i'm using the long way round but what i have in the way of a script is
this:
##selecting the IDs from the dataframe individually
2018 Sep 13
1
dovecot + centos 7 + internal ca + hostname change
Not sure if this is dovecot or not but can find very little ie no info
around on this ... and added the pem file into
/etc/pki/ca-trust/source/anchors and run udpate-ca-trust .. all works ok
.. (this is on centos 7 btw)
So wanted to change the hostname away from ip-x-x-x-x to something a
little bit more descriptive .. but then kaboom .. doesnt work any more
and the following errors are seen.
2011 Jul 20
3
Grouping columns
*Hi @ all,
I have a question concerning the possibilty of grouping the columns of a
matrix.
R groups the columns alphabetically.
What can I do to group the columns in my specifications?
The script is the following:*
> #R-Skript: Anzahl xyz
>
> #Quelldatei einlesen
> b<-read.csv2("Z:/int/xyz.csv", header=TRUE)
>
> #Teilmengen f?r die Einzeljahre generieren
>
2006 Dec 31
0
(no subject)
> > If one compares the random effect estimates, in fact, one sees that
> > they are in the correct proportion, with the expected signs. They are
> > just approximately eight orders of magnitude too small. Is this a bug?
>
> BLUPs are essentially shrinkage estimates, where shrinkage is
> determined with magnitude of variance. Lower variance more
> shrinkage towards
2006 Dec 31
2
zero random effect sizes with binomial lmer [sorry, ignore previous]
I am fitting models to the responses to a questionnaire that has
seven yes/no questions (Item). For each combination of Subject and
Item, the variable Response is coded as 0 or 1.
I want to include random effects for both Subject and Item. While I
understand that the datasets are fairly small, and there are a lot of
invariant subjects, I do not understand something that is happening
here, and in