Displaying 20 results from an estimated 2000 matches similar to: "comparing two unequal matrices without for loop?"
2013 Apr 17
1
Q-Q Plot for comparing two unequal data sets
Hello All,
Would anyone be able to help me understand how R computes a
quantile-quantile plot for comparing two data samples with unequal sample
sizes? Normally, the procedure should be to rearrange the larger data
sample into n equally-spaced parts using interpolation, where n is the
sample size of the smaller sample, and then plot the matching data pairs. I
tried using different plotting
2009 Oct 23
1
Bonferroni with unequal sample sizes
Hello-
I have run an ANOVA on 4 treatments with unequal sample sizes (n=9,7,10 and 10). I want to determine where my sig. differences are between treatments using a Bonferroni test, and have run the code:
pairwise.t.test(Wk16, Treatment, p.adf="bonf")
I receive an error message stating that my arguments are of unequal length:
Error in tapply(x, g, mean, na.rm = TRUE) :
2007 Jun 28
1
unequal variance assumption for lme (mixed effect model)
Dear Douglas and R-help,
Does lme assume normal distribution AND equal variance among groups
like anova() does? If it does, is there any method like unequal
variance T-test (Welch T) in lme when each group has unequal variance
in my data?
Thanks,
Shirley
2008 Apr 03
2
coding for categorical variables with unequal observations
Hi,
I am doing multiple regression, and have several X variables that are
categorical.
I read that I can use dummy or contrast codes for that, but are there
any special rules when there're unequal #observations in each groups (4
females vs 7 males in a "gender" variable)?
Also, can R generate these codes for me?
THanks.
2011 Nov 01
1
help with unequal variances
Hello,
I have some patient data for my masters thesis with three groups (n=16, 19 &
20)
I have completed compiling the results of 7 tests, for which one of these
tests the variances are unequal.
I wish to perform an ANOVA between the three groups but for the one test
with unequal variance (<0.001 by both bartlett and levene's test) I am not
sure what to do.
I thought i would run
2007 Apr 25
2
levelplot and unequal cell sizes
I am using levelplot() from lattice with grids that have unequal cell
sizes. This means that the boundary between two cells is not always
half-way between nodes, as levelplot() assumes. The result is that some
cell sizes are rendered incorrectly, which can be painfully obvious if
using relatively large cells. Is there any work-around? I am using the
conditioning capability of lattice and
2018 Apr 18
1
merge two data frame based on equal and unequal comparisons
Dear R users,
I need to merge two data frames based on both equal and unequal comparisons. The "sqldf" package used to work well , but today, I cannot resolve the following error by reinstallation of the sqldf package. Can anyone suggest a different way to perform this kind of merge function?
Thank you,
Ding
> DMRlog2pbde47DMS <- sqldf("select * from DMR_log2pbde47 as a
2011 Apr 21
1
one-way ANOVA model, with one factor, an unbalanced design and unequal variances
Hi,
i'm looking for an R function to fit a one-way ANOVA with one factor
containing 10 levels. The factor levels have different numbers of
observations (varying between 20 to 40). For most of the dependent variables
i'm testing there are unequal variances among the factor levels.
I see the function oneway.test:
oneway.test(variable ~ factor, data=dataset)
which by default does not
2008 Feb 07
0
Sampling with unequal probabilities
This is in followup to a thread on R-help with subject "Sampling".
I claim that R does the wrong thing by default when
sampling with unequal probabilities without replacement -
the selection probabilities are not proportional to 'prob',
for any draw after the first: I suggest that R do what S-PLUS now does
(though you're free to choose a better implementation).
What S-PLUS
2009 Dec 22
1
Cohen's kappa, unequal score ranges
Hi,
I am having problems getting cohen's kappa to work. I have been using the function:
><-ckappa(x,y)
from the psy package.
I am trying to test for inter-observer reliability, I have 2 observers and 26 categories, however, the two observers might not necessarily have the same range of categories (I have unequal score ranges). However, I thought R could cope with this.
Each time I
2009 Feb 26
1
logistic regression - unequal groups in R
I am getting a repeated error when I try to run a logistic regression in R
2.8.1
>(glm(prop1~x1,data=glm1,family=binomial("logit"),weights=nt1))
Error in model.frame.default(formula = prop1 ~ x1, data = glm1, weights =
nt1, :
invalid type (list) for variable 'x1'
x1 is multistate categorical (3 categories). 2 of the categories have 12
observation, one has 9. Is this what
2006 Apr 27
1
Looking for an unequal variances equivalent of the Kruskal Wallis nonparametric one way ANOVA
Well fellow R users, I throw myself on your mercy. Help me, the unworthy,
satisfy my employer, the ungrateful. My feeble ramblings follow...
I've searched R-Help, the R Website and done a GOOGLE without success for a
one way ANOVA procedure to analyse data that are both non-normal in nature
and which exhibit unequal variances and unequal sample sizes across the 4
treatment levels. My
2005 May 19
1
Power w/ unequal sample sizes
Hello,
I am hoping someone could shed some light on power calculations for me. I
have two small data sets of unequal sample size after NA removal (m = 5, f =
7).
m <- c(2.0863, 2.1340, 2.1008, 1.9565, 2.0413, NA, NA)
f <- c(1.8938, 1.9709, 1.8613, 2.0836, 1.9485, 2.0630, 1.9143)
In a R help message/reply from Sep 30, 2001, it was noted that the
"power.t.test" function
2007 Sep 04
1
Robust linear models and unequal variance
Hi all,
I have probably a basic question, but I can't seem to find the answer in
the literature or in the R-archives.
I would like to do a robust ANCOVA (using either rlm or lmRob of the
MASS and robust packages) - my response variable deviates slightly from
normal and I have some "outliers". The data consist of 2 factor
variables and 3-5 covariates (fdepending on the model).
2011 Aug 31
1
unequal bins in filled.contour
Hello,
I am trying to plot SADIE red-blue plots of cluster indicies using
filled.contour. I want a plot which only has three bins for the data:
<-1.5, -1.5 - 1.5, >1.5, but I am having trouble getting there.
example
X1 X2 X3 X4 X5
1 -5 -4.5 1.0 4.5 6
2 -3 -2.0 1.2 -1.0 3
3 0 0.0 0.0 -0.5 -1
4 -2 -3.0 1.0 1.5 3
5 -6 -2.0 0.5 3.0 2
example<-as.matrix(example)
2003 Oct 06
0
randomizing within factors and combining unequal-sized arrays
Dear R folks -
Sorry to be so dense, but can you help me with two
programming problems?
1. Randomizing within factors.
I have factored the values in an array according to a series
of ranked breakpoints. Now I want to randomize the values that fall
within each of the breakpoint boundaries, without replacement. I want
to end up with an array in which the values within each factored
category
2010 Aug 14
0
Unequal variance ANOVA using gls function in nlme
Hi
I am trying to run an ANOVA on data with unequal variance. I am new to nlme, but to my understanding I need to use the gls function. I have single response variable (distance which is continuous) and the explanatory variable is individual ID (class variable: individuals differ in the variance in their distance values hence the need to using nlme).
So I would create a model
2013 May 10
0
How to generate factor levels with unequal numbers?
Hi,
vec1<-factor(rep(c("A","B","C"),c(19,8,11)),levels=c("A","B","C"))
sapply(split(vec1,vec1),length)
# A? B? C
#19? 8 11
#or you could change gl() function
gl.new<-function (n, k, labels = 1:n, ordered = FALSE) {
? out<- numeric()
?? for(i in 1:n){
?? out<- append(out,rep(i,length.out=k[i]))
?? }
?? out<-factor(out)
??
2009 Apr 01
3
Fit unequal variance model in R
I'am trying to develop some code if R, which would correspond to what I did in SAS.
The data look like:
Treatment Replicate group1 GSI
Control A 1 0.81301
Control B 1 1.06061
Control C 1 1.26350
Control D 1 0.93284
Low A 2 0.79359
Low B
2008 Oct 09
1
adjusted t-test with unequal variance
Hi all,
right now i am simply comparing means. obviously this can be done by
the simple t.test respectively the welch test, if var.equal is set to
FALSE.
just like this
t.test( Y ~ group)
t.test( Y ~ group, var.equal = FALSE)
now that i need to compare weighted means i am using the lm function
as an adjusted t-test:
like
lmtest <- ( Y ~ group )
anova(lmtest)