Displaying 20 results from an estimated 300 matches similar to: ""Glueing" factors together"
2013 Mar 13
5
string split at xth position
Hi,
I have a vector of strings like:
c("a1b1","a2b2","a1b2") which I want to spilt into two parts like:
c("a1","a2","a2") and c("b1","b2,"b2"). So there is
always a first part with a+number and a second part with b+number.
Unfortunately there is no separator I could use to directly split
the vectors.. Any idea
2012 Sep 14
4
concatenating two vectors
Dear all,
I want to concatenate the elements of two vectors such as
a<-c("a1","a2")
b<-c("b1","b2")
and obtain
"a1b1", "a1b2","a2b1","a2b2"
I tried the paste and paste0 functions, but they yielded elementwise
concatenation such as
"a1b1","a2b2"
I am wondering that is there an efficient
2009 Jan 30
2
reshape with two time variables
I have a data frame in wide format that I'd like to convert to long format.
For example, in wide format I have:
id A1B1 A1B2 A2B1 A2B2
1 1 400 475 420 510
2 2 390 500 470 472
3 3 428 512 555 610
4 4 703 787 801 822
5 5 611 634 721 705
6 6 543 522 612 788
7 7 411 488 506 623
8 8 654 644 711 795
A is one repeated-measures variable with levels 1 and 2. B is a second
repeated-measures variable
2010 Jan 03
1
Anova in 'car': "SSPE apparently deficient rank"
I have design with two repeated-measures factor, and no grouping
factor. I can analyze the dataset successfully in other software,
including my legacy DOS version BMDP, and R's 'aov' function. I would
like to use 'Anova' in 'car' in order to obtain the sphericity tests
and the H-F corrected p-values. I do not believe the data are truly
deficient in rank. I
2012 Mar 21
2
Type II and III sum of squares (R and SPSS)
To whom it may concern
I made some analysis with R using the command Anova. However, I found
some problmes with the output obtained by selecting type II o type III
sum of squares.
Briefly, I have to do a 2x3 mixed model anova, wherein the first factor
is a between factor and the second factor is a within factor. I use the
command Anova in the list below, because I want to obtain also the sum
2002 Jan 28
4
Multivariate response trees
I would like to know if someone has done work on trees with
multivariate response. I need something like rpart but for vector
responses. If someone has code that he/she is willing to share, I
would be grateful. If not, even guidelines for writing my own starting
from rpart would be welcomed.
ft.
--
Fernando TUSELL e-mail:
Departamento de
2010 Jul 02
4
Some questions about R's modelling algebra
Hi all,
In preparation for teaching a class next week, I've been reviewing R's
standard modelling algebra. I've used it for a long time and have a
pretty good intuitive feel for how it works, but would like to
understand more of the technical details. The best (online) reference
I've found so far is the section in "An Introduction to R"
2005 Jan 19
1
recursive penalized regression
Hi,
Few days ago I posted a question to r-sig-finance, which I thought would
be an easy one. To my surprise I have received no replies, which makes
me think that it is either harder than I thought, or that it makes no
sense. I am reposting the message (with some modifications) on the
R-help in a hope to get some leads, suggestions for alternatives, etc.
My apologies to those who had seen this on
2005 Apr 05
2
Principle Component Analysis in R
Dear R
Should I be concerned if the loadings to a Principle Component Analysis are
as follows:
Loadings:
Comp.1 Comp.2 Comp.3 Comp.4
X100m -0.500 0.558 0.661
X200m -0.508 0.379 0.362 -0.683
X400m -0.505 -0.274 -0.794 -0.197
X800m -0.486 -0.686 0.486 0.239
Comp.1 Comp.2 Comp.3 Comp.4
SS loadings 1.00 1.00 1.00 1.00
Proportion Var 0.25 0.25 0.25
2005 Jun 01
2
Fitting ARMA model with known inputs.
Hello!
Is it possible to use R time series to identificate a process which is
subjected to known input? I.e. I have 2 sequences - one is measurements
of black box's state and the second is the "force" by which this black
box is driven (which is known too) and I want to fit thist two series
with AR-process. The "ar" procedure from stats package expects that the
force is
2000 Jun 20
5
Compiling R on an Alpha
Sorry to be such a nuisance but after asking for help with compiling
R-1.1.0 on an Intel-based machine I now have another problem on the
Alpha DS-10 server which my students use.
Compilation and instalation proceed perfectly, but when I invoke R I
get:
[etdx01:bin]$ ./R
Fatal error: The X11 shared library could not be loaded.
The error was /home/etptupaf/R/lib/R/bin/R_X11.so: undefined
2005 Jan 18
1
"Attach" for S4 objects?
When passing a list as an argument to a function, I find it convenient
to attach it in the first line of th function code, then refer to the
components as A, B, etc. rather than as list$A, list$B, etc.
If I pass a S4 class object, is there a way to "attach" it, or do I have
to refer to the slots as object at A, objetc at B, etc.?
I could always make copies,
A <- object at A
2012 Feb 08
4
"unsparse" a vector
Suppose I have a vector of strings:
c("A1B2","A3C4","B5","C6A7B8")
[1] "A1B2" "A3C4" "B5" "C6A7B8"
where each string is a sequence of <column><value> pairs
(fixed width, in this example both value and name are 1 character, in
reality the column name is 6 chars and value is 2 digits).
I need to
2002 Feb 01
1
Sampling from a database
I use RODBC and RpgSQL quite a lot to access files stored in another
machine under PostgreSQL. Since I am now using files which do not fit
into R's memory, I would like to take random samples. What I would
like is to issue a query such as
SELECT * FROM file WHERE runif > 0.9
with "runif" being a uniformly distributed random number, generated on
the fly; but I cannot
2006 Apr 10
3
SE estimates for treatment groups from nlme
I am wondering how to obtain SE estimates for fixed effects from a nonlinear mixed effects model?
I have fixed effects corresponding to three factors A, B and C with 2, 3 and 3 levels respectively. I have fit a model of the following general form:
nlme1<-nlme(y~ SasympOrig(x, Asym, lrc), data=df, fixed=list(Asym~A*B*C, lrc~A*B*C),
start=c(fixef(ETR.nlme)[1], rep(0,17), fixef(ETR.nlme)[2],
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all:
I'm trying to fit the optimal Box-Cox
transformation related to nls (see the code
below) for the demand of money data in Green (3th
Edition) but in the last step R gives the next
error message.
Error en
`[.data.frame`(eval(object$data), ,
as.character(formula(object)[[2]])[2]) :
undefined columns selected.
?Any idea to solve the problem?
Thanks in advance,
2000 Jul 06
0
R-1.1.0 on Alpha?
Has anyone succeeded in compiling R-1.1.0 on a Digital (Compaq) Alpha
running OSF4.0F (or E)? Everything seems to compile OK (except the
frequent "Warning: Unresolved:" at link time - this threw me off the
scent for a while!), but then at run time I get:
Fatal error: The X11 shared library could not be loaded.
The error was dlopen: cannot load
2024 Oct 11
1
Problem with a domain controller that is located in a separate site
On Fri, 11 Oct 2024 12:12:17 +0300
Adam Abramson via samba <samba at lists.samba.org> wrote:
> I decided to look for something about the reps-to attribute and this
> is what I came across in ms ADTS, it turns out that the attribute
> should be filled in, but for some reason this does not happen in
> samba when one is on a separate site,
> who can I contact who is working on
2024 Mar 25
1
Double buffering plots on Windows
Hi Paul
Is there a concrete working example somewhere that shows how to use these to do an animation on Windows (R Gui &/or RStudio) using base R plot() and friends?
I have several old examples somewhere that used to work (R < ~ 3), but now no longer work as before.
Date: Mon, 25 Mar 2024 10:43:29 +1300
From: Paul Murrell <paul at stat.auckland.ac.nz<mailto:paul at
2015 Apr 25
2
I can't join the new AD server with Samba4
Hi,
The smb.conf is the default after the upgrade:
cat /etc/samba/smb.conf
# Global parameters
[global]
workgroup = TTU
realm = ttu.red
netbios name = PDC
interfaces = lo, eth0
bind interfaces only = Yes
server role = active directory domain controller
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl,
winbind, ntp_signd, kcc,