Displaying 20 results from an estimated 300 matches similar to: "Error: length(f1) == length(f2) is not TRUE"
2009 Jul 15
2
Differing Variable Length Inconsistencies in Random Effects/Regression Models
Dear All,
I am quite new to R and am having a problem trying to run a linear model
with random effects/ a regression- with particular regard to my variable
lengths being different and the models refusing to compute any further.
The codes I have been using are as follows:
vc<-read.table("P:\\R\\Testvcomp10.txt",header=T)
>> attach(vc)
>
> family<-factor(family)
>
2009 Sep 18
0
Error: length(f1) == length(f2) is not TRUE (fwd)
---------- Forwarded Message ----------
Date: 18 September 2009 19:24 +0100
From: A Singh <bzwas at bristol.ac.uk>
To: William Dunlap <wdunlap at tibco.com>
Subject: RE: [R] Error: length(f1) == length(f2) is not TRUE
Yup, they are all factors- and its still doesn't work.
Getting to the stage where I can use 'summary()' is the problem- the error
stalls the process before a
2009 Nov 19
1
Splitting massive output into multiple text files
Dear List,
I thought it would be much easier to put a second query into a second mail.
I need to print 426*10000 blocks of variance components data, where 426 is
the number of columns of data that have 10000 permutations of variance
generated for each of them.
I have tried printing out a smaller number of permutations for a smaller
number of markers and that has worked.
However, since a
2009 Nov 16
3
lapply() not converting columns to factors (no error message)
Dear List,
I'm having a curious problem with lapply(). I've used it before to convert
a subset of columns in my dataframe, to factors, and its worked. But now,
on re-running the identical code as before it just doesn't convert the
columns into factors at all.
As far as I can see I've done nothing different, and its strange that it
shouldn't do the action.
Has anybody
2009 Sep 11
0
How to block data across multiple columns?
Dear all,
Does anyone have any suggestions on how to block multiple columns of data
one at a time in the midst of an analysis, having specified the blocking
variable?
I am running a random effects model using lmer, and my data set has
multiple columns.
Individuals in the study are grouped into 60 families- which is the
blocking factor.
The random effects are markers (labeled Pxlyy below)
2009 Nov 19
0
Printing labeled summary to text file ?
Dear List,
I am trying to run a mixed model which, on the R console, prints output as
follows:
[1] "Marker"
[1] "perm no."
[1] NA
Linear mixed model fit by REML
Formula: peg.no.prm ~ 1 + (1 | family/f)
Data: modeldf
AIC BIC logLik deviance REMLdev
3119 3134 -1555 3112 3111
Random effects:
Groups Name Variance Std.Dev.
f:family (Intercept) 0.0
2009 Dec 08
1
Printing 'k' levels of factors 'n' times each, but 'n' is unequal for all levels ?
Dear List,
I need to print out each of 'k' levels of a factor 'n' times each, where
'n' is the number of elements belonging to each factor.
I know that this can normally be done using the gl() command,
but in my case, each level 'k' has an unequal number of elements.
Example with code is as below:
vc<-read.table("P:\\Transit\\CORRECT
2009 Jul 28
1
Multiple lmer runs using 2 'for' loops
Dear Mark and the R list,
I apologise greatly for not having thanked you earlier for your help with
my last mail, which involved trying to sort out variance components using
two methods: a direct looped lmer, and a two-step analysis involving
regressions of AFLP markers on lmer residuals for the same result (or so I
hoped).
I was in India for ten days and no CRAN mirror in the vicinity made
2005 Mar 29
3
From FAQ 7.21 to a command like apply(sapply(list(f1,f2,f3),is.na),2,sum)
Dear all,
Last December there was a thread regarding the famous FAQ 7.21 "How can I
turn a string into a variable?" and asking what people want to do with
these strings.
My, certainly trivial application would be as follows:
Assume I have a data.frame containing besides others also the columns f1,
f2, ..., fn and I want to create a command like:
apply(sapply(list(f1,f2,f3),is.na),2,sum)
2009 Sep 21
4
Working around 256 byte variable names? + trouble opening large file
Dear R users,
I am trying to read in a file with 105 columns, and when trying to attach
it, get an error as follows:
> vc1<-read.table("P:\\R\\Everything-I.txt", header=T, sep=" ", dec=".",
na.strings=NA, strip.white=T)
> attach(vc1)
Error in attach(vc1) : variable names are limited to 256 bytes
Is there a way to get around this, and make R accept the
2009 Sep 04
3
Using anova(f1, f2) to compare lmer models yields seemingly erroneous Chisq = 0, p = 1
Hello,
I am using R to analyze a large multilevel data set, using
lmer() to model my data, and using anova() to compare the fit of various
models. When I run two models, the output of each model is generated
correctly as far as I can tell (e.g. summary(f1) and summary(f2) for the
multilevel model output look perfectly reasonable), and in this case (see
below) predictor.1 explains vastly more
2011 Jul 29
4
scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?
Dear R folks,
wanting to compare different implementations of a solution I want to
script it to iterate over the different implementations. Is there a way
to do this in the R shell/command line?
$ more /tmp/iterf.r
f1 <- function(n = 100000,
l = 100000)
{
z = n + l
}
f2 <- function(n = 100000,
2006 Jun 04
3
passing a value in a hidden field inside a form
should be trivial but I can''t figure this out from api
<%= hidden_field ''certifications'', ''personnel_id'', {value =
#{@personnel.id}} %>
I want to pass the value of ''id'' field in my form to the certifications
controller as personnel_id
Craig
2012 Oct 11
1
replacing ugly for loops
I have a couple of hundred American Community Survey Summary Files files
containing rectangular arrays of data, mainly though not exclusively
numeric. Each file is referred to as a sequence (henceforth "seq"). From
these files I am trying to extract particular subsets (tables) consisting of
a sets of columns. These tables are defined by three numbers (now in
columns in a data frame):
2006 May 09
1
transposing a big data file
I HAVE A VERY BIG DATA OF 67 COLMS AND 25000 ROWS
AND WOULD LIKE TO TRANSPOSE IT THE R HELP WAS NOT ENOUGH INFORMATION
BECOUSE I AM NOT A PROGRAMMER AND FIRST TIME R USER.
SO CAN YOU GIVE SOME HINTS OF CODING,
AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC AA TT GG GG CC AA TT GG GG
CC
TO
AA AA AA AA AA TT TT TT TT TT GG GG GG GG GG GG GG GG GG GG CC CC CC CC
CC
[[alternative HTML
2006 May 23
3
Pagination problem
hi everybody,
i am new to rails..
plz clear my doubt...
this is my question
In my table(public_topics), i have 11 rows of data..
whenever i run the following view, it shows the entire rows in the
current page..
and i have set the '':per_page'' option to ''2''.so it must show two data
per page..but it shows all the rows in a single page..and this case
continue
2016 Mar 23
1
We really need more community involvement with GSoC
On 03/20/2016 12:20 PM, John Criswell via llvm-dev wrote:
> On 3/19/16 6:26 AM, Bruce Hoult via llvm-dev wrote:
>> I work for one of those "top companies", but LLVM is only one of the
>> back-ends I'm working with so I have only pretty narrow knowledge of
>> it (but ok knowledge of compilers in general, I hope).
>>
>> I'm trying to post easy to
2007 Feb 28
0
How to press F1 over a serial console? F1 scan code is 2 bytes - 00h 3Bh
"Richard L. James" <richard_l_james at yahoo.co.uk> writes:
> Greetings to .HU - to do this you need a way to be able to send the
> following 2 bytes which represent the keyboard scan code for F1:
>
> 1st byte = 0d / 0h / NUL (null character)
> 2nd byte = 59d / 3Bh / semi column (;)
Hi Richard,
so you mean I should send the scan code over the serial line, not some
2005 Oct 08
1
windows/g95 peculiarity
I'm not looking for an answer here, this is just a report of a
peculiar event I've observed
and can reproduce.
I'm developing a g95 (20050129) compiled package on windows xp pro
using R-2.1.1, and gcc-3.4.2 (mingw special). An older version of the
F95 package compiled and ran without problems. The new version of the
package includes extensive changes in the code.
The package has a
2012 Jan 06
1
intercept Alt-F2 in winconsole
I need to use Alt-F2 shortcut in Far Manager running with wineconsole. But Alt-F2 invokes standard Linux "run command" dialog. How can I intercept the Alt-F2 so that it is processed by Wine application?