Displaying 20 results from an estimated 5000 matches similar to: "coding for categorical variables with unequal observations"
2008 Jul 01
2
PCA : Error in eigen(cv,
Hi all,
I am doing bootstrap on a distance matrix, in which samples have been
drawn with replacement. After that I do PCA on a resulted matrix, and
these 2 steps are repeated 1000 times.
pca(x) is a vector where I wanted to store all 1000 PCAs; and x is from
1 to 1000
SampleD is a new matrix after resampling;
I am getting the following error message, which I don't understand:
....
2010 Oct 20
1
Please help: ANOVA with SS Type III for unequal sample sized data
Dear R experts,
I'm beginner.
My question about ANOVA for unequal sample sized data should be obsolete but
I can not clarify it.
I have a dataset from 23 males and 18 females.
I measured one condition('cond') with 4 levels.
So I'd like to see main effect of gender, cond and gender by cond
interaction and also postHoc test. (In fact, I have to do anova 90 times)
*
1. Question
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) :
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
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 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).
2016 Apr 14
3
Unequal column lengths
Hello,
I?ve tried several times to learn R, but have never gotten past a particular gate. My data are organized by column in Excel, with column headers in the first row. The columns are of unequal lengths. I export them as CSV, then import the CSV file into R. I wish to summarize the data by column. R inserts NA for missing values, then refuses to operate on columns with NA. R is importing
2010 May 14
4
Categorical Predictors for SVM (e1071)
Dear all,
I have a question about using categorical predictors for SVM, using "svm"
from library(e1071). If I have multiple categorical predictors, should they
just be included as factors? Take a simple artificial data example:
x1<-rnorm(500)
x2<-rnorm(500)
#Categorical Predictor 1, with 5 levels
x3<-as.factor(rep(c(1,2,3,4,5),c(50,150,130,70,100)))
#Catgegorical Predictor
2010 Jan 21
3
Anova unequal variance
I found this paper on ANOVA on unequal error variance. Has this be
incorporated to any R package? Is there any textbook that discuss the
problem of ANOVA on unequal error variance in general?
http://www.jstor.org/stable/2532947?cookieSet=1
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
2006 Aug 18
2
dataframe of unequal rows
Hi,
How can I read data of unequal number of observations (rows) as is (i.e. without introducing NA for columns of less observations than the maximum. Example:
A B C D
1 10 1 12
2 10 3 12
3 10 4 12
4 10
5 10
Thanks in advance.
Sachin
---------------------------------
[[alternative HTML version deleted]]
2007 Jan 27
2
unequal number of observations for longitudinal data
i have a large longitudinal data set. The number of observations for each
subject is not the same across the sample. The largest number of a subject
is 5 and the smallest number is 1.
now i want to make each subject to have the same number of observations by
filling zero, e.g., my original sample is
id x
001 10
001 30
001 20
002 10
002 20
002 40
002 80
002 70
003 20
003 40
004 ......
now i wish
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
2012 Oct 18
3
Linux Software RAID 1 - Unequal Sized Hard Disks
Has anyone created or rebuilt a Linux Software RAID having mirrored
partitions on unequal sized hard disks ? There is a CentOS 5 server
having two 400 GB hard disks with five mirrored partitions (software
RAID 1) and one of the hard disks is dying. Since new 400 GB HDDs are
not available here, we are exploring the possibility of replacing the
faulty hard disk with one of a higher capacity (500 GB
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 Aug 28
1
comparing two unequal matrices without for loop?
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110828/ac62948a/attachment.pl>
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
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