Displaying 20 results from an estimated 700 matches similar to: "manova and table of means by factor levels"
2006 Jul 04
1
summary.formula table questions
Question 1) I am using the summary.formula function, from the Hmisc,
package, to construct a table of the mean establishment rates of multiple
plant ecotypes. I do not want the count (N) columns included in the table.
Is there a way to suppress that statistic?
Question 2) The table will have multiple columns, each representing a
different location. Is there a way to include Tukey's HSD at
2006 May 12
3
optimal way to compute matrix subtotals?
Hi!
I have large matrices, one column per variable and I have a vector of factors / grouping symbols. Then I am computing subtotals for the groups but it takes pretty long and thus I wanted to ask if there is a better way to do it or if this is already the best way:
subTotals <- function(x, groupvec) do.call("rbind",lapply(split(x,groupvec),colSums,na.rm=T))
Thanks reading my
2012 Oct 17
3
subtotals based on price bands?
I would like to create a subtotal table with custom bands.
seq1 = seq(0, 100, by = 5)
seq2 = seq(100, 1000, by = 100)
Bands = c(seq1, seq2)
#Prices
Prices = sample(1:1000, 200, replace=F)
#corresponding size for the given price above.
size = sample(1:1000, 200, replace=F)
How would I find the subtotal of the size based on a given price falls
within a band?
--
View this message in
2012 Nov 06
1
Ordered probit using clm2
Hi,
I am new in R. I would like to do a ordered probit regression using clm2 (in the ordinal package).
My dependent variable y is the way of payment in M&A: y=0 if the deal is financed by stock only, y=1 if the deal is financed by a mix of cash and stock and y=2 if it is by cash only.
My independent variables are CollateralB, Cashavailable and Leverage.
This is the code I wrote:
>
2013 May 03
1
MANOVA summary.manova(m) :" residuals have rank"
Dear All, I am trying to perform MANOVA. I have table with 504 columns(species) and 36 rows) with two grouping (season and location)
Zx <- Z[c(4:504)]
Zxm <- as.matrix(Z)
m<- manova(Zxm~Season*location, data=Z)
when I do summary.aov, I get respond for each species but summary.manova
summary.manova(m) :" residuals have rank" 24<501.
What can it be the reason for this error
2006 Feb 16
2
MANOVA: how do I read off within and between Sum-of-Squares info from the manova result?
Hi all,
I am experimenting the function "manova" in R.
I tried it on a few data sets, but I did not understand the result:
I used "summary(manova_result)"
and "summary(manova_result, test='Wilks')"
and they gave a bunch of numbers...
But I need the Sum-of-Squares of BETWEEN and WITHIN matrices...
How do I read off from the R's manova results?
Any
2008 Oct 02
2
aggregate empty row for pretty appearance also subtotal if possible
Hi,
To pretty print aggregates by various dimensions I needed to add a
empty row in output of aggregate.
For example.
d<-(aggregate(data[,cbind("x")], by=list(data$group1,data$group2),
sum))
Group.1 Group.2 x
1 A N 3
2 A Y 2
3 B N 420164905
Is there a way to add an empty
2004 May 24
2
Manova and specifying the model
Hi,
I would like to conduct a MANOVA. I know that there 's the manova() funciton and the summary.manova() function to get the appropriate summary of test statistics.
I just don't manage to specify my model in the manova() call. How to specify a model with multiple responses and one explanatory factor?
If I type:
2007 Feb 22
1
MANOVA usage
Hello,
I had a couple questions about manova modeling in R.
I have calculated a manova model, and generated a summary.manova output
using both the Wilks test and Pillai test.
The output is essentially the same, except that the Wilks lambda = 1 -
Pillai. Is this normal? (The output from both is appended below.)
My other question is about the use of MANOVA. If I have one variable which
has a
2004 Feb 15
1
manova() with a data frame
I'm trying to learn to use manova(), and don't understand why none of
the following work:
> data(iris)
> fit <- manova(~ Species, data=iris)
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
incompatible dimensions
> fit <- manova(iris[,1:4] ~ Species, data=iris)
Error in model.frame(formula, rownames, variables, varnames, extras,
2012 Mar 19
1
car/MANOVA question
Dear colleagues,
I had a question wrt the car package. How do I evaluate whether a
simpler multivariate regression model is adequate?
For instance, I do the following:
ami <- read.table(file =
"http://www.public.iastate.edu/~maitra/stat501/datasets/amitriptyline.dat",
col.names=c("TCAD", "drug", "gender", "antidepressant","PR",
2011 Jun 21
1
Stepwise Manova
Hello all,
I have a question on manova in R:
I'm using the function "manova()" from the stats package.
Is there anything like a stepwise (backward or forward) manova in R (like there is for regression and anova).
When I enter:
step(Model1, data=Mydata)
R returns the message:
Error in drop1.mlm(fit, scope$drop, scale = scale, trace = trace, k = k, :
no 'drop1'
2003 Nov 22
3
summary.manova and rank deficiency
Hi all,
I have received the following error from summary.manova:
Error in summary.manova(manova.test, test = "Pillai") :
residuals have rank 36 < 64
The data is simulated data for 64 variables. The design is a 2*2 factorial with 10 replicates per treatment. Looking at the code for summary.manova, the error involves a problem with qr(). Does anyone have a suggestion as to how to
2006 Mar 30
2
Unbalanced Manova
Dear all,
I need to do a Manova but I have an unbalanced design. I have
morphological measurements similar to the iris dataset, but I don't have
the same number of measurements for all species. Does anyone know a
procedure to do Manova with this kind of input in R?
Thank you very much,
Naiara.
--------------------------------------------
Naiara S. Pinto
Ecology, Evolution and Behavior
1
2003 Jun 10
1
Bootstraping with MANOVA
Hi,
Does anyone know what the error message mean?
> Boot2.Pillai <- function(x, ind) {
+ x <- as.matrix(x[,2:ncol(x)])
+ boot.x <- as.factor(x[ind, 1])
+ boot.man <- manova(x ~ boot.x)
+ summary(manova(boot.man))[[4]][[3]]
+ }
>
> man.res <- manova(as.matrix(pl.nosite) ~
+ as.factor(plankton.new[,1]))$residuals
> boot2.plank <-
2008 Aug 12
1
manova: R vs SAS...need some clarification
Dear all;
working with a 'fat' data set (700 variables / 50 samples) and trying
to run a manova test on it (I'm aware that it's not the best option
for this kind of data set) I got the error in the summary.manova
function about the rank of the residuals (rank < # variables). Ok. The
thing that I don't understand is why I don't get the same type of
error in SAS. There
2007 Apr 05
1
MANOVA with repeated measurements
Hello,
I have a question regarding performing manova. I have an experiment where I want to measure 10 output variables for 3 different measurement methods. Since each of the methods requires some user interaction, I would also like to include repeated measures for each of the output variables to include intraobserver variability in the design.
How can I perform such a repeated-measures
2005 Jan 20
1
confidence intervals in Manova and Mancova in Splus
Anyone
I'm wondering how to make confidence intervals (bonferroni or simultaneous)
when using Manova and Mancova in Splus. I 'm doing manova with four variables
on length and four variables on weight (of salmon). The measuring is done on
different time points. I'm working on my master in the field between
biostatistics and fishery biology. If anyone knows a good book on mancova
2010 Oct 29
1
Repeated Measures MANOVA
Hello all,
Is there an r function that exists that will perform repeated measures MANOVAs? For example, let's say I have 3 DVs, one between-subjects IV, and one within-subjects IV. Based on the documentation for the manova command, a function like that below is not appropriate because it cannot take Error arguments.
manova(cbind(DV1,DV2,DV3) ~ BetweenSubjectsIV * WithinSubjectsIV +
2004 Jan 05
1
MANOVA power, degrees of freedom, and RAO's paradox
Hi,
I have a nested unbalanced data set of four correlated variables. When I
do univariate analyses, my factor of interest is significant or
marginally significant with all of the variables. Small effect size but
always in the same direction. If I do a MANOVA instead (because the
variables are not independent!) then my factor is far from being
significant. How does that come about?
I have