Displaying 20 results from an estimated 90 matches similar to: "i need help in cluster analyse"
2007 Mar 03
2
format of summary.lm for 2-way ANOVA
Hi,
I am performing a two-way ANOVA (2 factors with 4 and 5 levels,
respectively). If I'm interpreting the output of summary correctly,
then the interaction between both factors is significant:
,----
| ## Two-way ANOVA with possible interaction:
| > model1 <- aov(log(y) ~ xForce*xVel, data=mydataset)
|
| > summary(model1)
| Df Sum Sq Mean Sq F value Pr(>F)
|
2007 Mar 29
1
ccf time units
Hi,
I am using ccf but I could not figure out how to calculate the actual lag in
number of periods from the returned results. The documentation for ccf
says:"The lag is returned and plotted in units of time". What does "units of
time" mean? For example:
> x=ldeaths
> x1=lag(ldeaths,1)
> results=ccf(x,x1)
> results
Autocorrelations of series 'X', by lag
2002 Nov 26
1
sprintf crash (PR#2327)
>2) Under MacOS 10.2.2. Given the following dataset:
>
> > summary(missing.data)
> Hosp..No. Category Offset Side
> r060093: 4 F Post op 0.5 year :62 Min. :-5.8333 L: 63
> r023250: 3 E Pre op 0.5 year :54 1st Qu.:-0.4167 R:141
> r026316: 3 H Post op 1.5 years :44 Median : 7.7083
> r032583: 3 G Post op 1 year
2010 Sep 26
4
How to update an old unsupported package
Hi all,
I have a package that is specific to a task I was repetitively using a
few years ago.
I now needed to run it again with new data.
However I am told it was built with an older version or R and will not work.
How can I tweak the package so it will run on 11.1?
It was a one-off product and has not been maintained.
Is there a way to "unpackage" it and repackage it to work?
I
2010 Jul 06
1
acf
Hi list,
I have the following code to compute the acf of a time series
acfresid <- acf(residfit), where residfit is the series
when I type acfresid at the prompt the follwoing is displayed
Autocorrelations of series ?residfit?, by lag
0.0000 0.0833 0.1667 0.2500 0.3333 0.4167 0.5000 0.5833 0.6667 0.7500 0.8333
1.000 -0.015 0.010 0.099 0.048 -0.014 -0.039 -0.019 0.040 0.018
2010 Sep 06
1
Correct coefficients from treatment contrasts?
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable;
2010 Jul 22
0
Please advise acf and pacf in order to determine order of Arima
I have data as below.Please let me know how the ACF and Pacf used to
determine the order od arima model.
Is there any rules need to be followed to determine order.Please advise
> turkey.price.ts
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2001 1.58 1.75 1.63 1.45 1.56 2.07 1.81 1.74 1.54 1.45 0.57 1.15
2002 1.50 1.66 1.34 1.67 1.81 1.60 1.70 1.87 1.47 1.59 0.74 0.82
2012 Jul 20
0
Forced inclusion of varaibles in validate command as well as step
Dear prof. Harrell,
I'm not able to use the force option with fastbw, here an example of the error I've got (dataset stagec rpart package):
> fitstc <- cph(Surv(stagec$pgtime,stagec$pgstat) ~ age + eet + g2 + grade + gleason + ploidy, data=stagec)
> fbwstc <- fastbw(fitstc,rule="aic",type="individual")
> fbwstc
Deleted Chi-Sq d.f. P Residual d.f.
2003 Aug 11
1
Marginal (type II) SS for powers of continuous variables in a linear model?
I've used Anova() from the car package to get marginal (aka type II)
sum-of-squares and tests for linear models with categorical
variables. Is it possible to get marginal SSs also for continuous
variables, when the model includes powers of the continuous variables?
For instance, if A and B are categorical ("factor"s) and x is
continuous ("numeric"),
Anova (lm (y ~ A*B +
2011 Dec 21
1
matrix multivariate bootstrap: order of results in $t component
[This question is hopefully straight-forward, but difficult to provide
reproducible code.]
I'm doing a multivariate bootstrap, using boot::boot(),
where the output of the basic computation is a k x p matrix of coefficients,
representing a tuning constant x variable, as shown in the $t0 component
from my run, giving a 3 x 6 matrix
> lboot$t0
GNP Unemployed Armed.Forces
2004 May 31
2
Contrasts
Hello,
I am trying to figure out how to conduct a t-test on a specific contrast
for my data. I have four factors in my data and would like to conduct a
t-test on the average of the data from the first two factors against the
average of the data on the second two factor (i.e. is the average of the
first two different from the average of the second two). Is there a
quick way to do this? I found
2009 Sep 20
2
missing level of a nested factor results in an NA in lm output
Hello All,
I have posted to this list before regarding the same issue so I
apologize for the multiple e-mails. I am still struggling with this
issue so I thought I'd give it another try. This time I have included
reproducible code and a subset of the data I am analyzing.
I am running an ANOVA with three factors: GROUP (5 levels), FEATURE
(2 levels), and PATIENT (2 levels), where
2011 Jul 20
2
bar chart issue
Hi everyone,
I determined the presence of three types parasites in a passerine bird
over two years. I would like to create a bar chart that shows the
proportion infected on the y and year/parasite on the x such that each
type of parasite is grouped together (single label) and a bar for each
year . This would show if there have been changes in the prevalence of
a the parasite over two years.
2012 Mar 20
2
Constraint Linear regression
Hi there,
I am trying to use linear regression to solve the following equation -
y <- c(0.2525, 0.3448, 0.2358, 0.3696, 0.2708, 0.1667, 0.2941, 0.2333,
0.1500, 0.3077, 0.3462, 0.1667, 0.2500, 0.3214, 0.1364)
x2 <- c(0.368, 0.537, 0.379, 0.472, 0.401, 0.361, 0.644, 0.444, 0.440,
0.676, 0.679, 0.622, 0.450, 0.379, 0.620)
x1 <- 1-x2
# equation
lmFit <- lm(y ~ x1 + x2)
lmFit
Call:
2012 Mar 16
1
multivariate regression and lm()
Hello,
I would like to perform a multivariate regression analysis to model the
relationship between m responses Y1, ... Ym and a single set of predictor
variables X1, ..., Xr. Each response is assumed to follow its own
regression model, and the error terms in each model can be correlated.
Based on my readings of the R help archives and R documentation, the
function lm() should be able to
2010 Aug 12
3
Regression Error: Otherwise good variable causes singularity. Why?
This command
cdmoutcome<- glm(log(value)~factor(year)
> +log(gdppcpppconst)+log(gdppcpppconstAII)
> +log(co2eemisspc)+log(co2eemisspcAII)
> +log(dist)
> +fdiboth
> +odapartnertohost
> +corrupt
> +log(infraindex)
> +litrate
> +africa
>
2011 Sep 07
1
randomForest memory footprint
Hello, I am attempting to train a random forest model using the
randomForest package on 500,000 rows and 8 columns (7 predictors, 1
response). The data set is the first block of data from the UCI
Machine Learning Repo dataset "Record Linkage Comparison Patterns"
with the slight modification that I dropped two columns with lots of
NA's and I used knn imputation to fill in other gaps.
2005 Oct 20
3
numerical issues in chisq.test(simulate=TRUE) (PR#8224)
Hi,
This report deals with p-values coming from chisq.test using
the simulate.p=TRUE option. The issue is numerical accuracy
and was brought up in previous bug reports 3486 and 3896.
The bug was considered fixed but apparently was only mostly
fixed. Just the typical problem of two values that are
mathematically equal not ending up numerically equivalent.
Consider this series of three 2x2
2009 Aug 07
2
lowess puzzle
I was trying to fit a curve to the number of people who identify as liberal
by age. I got some puzzling results which suggested to me that I don't
really understand how local polynomial fitting works. Why, I am wondering,
is lowess producing a local fit of zero for every age?
> liberal.bin
[1] 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0
0 0 0 1 1 0 0 0 0 0 0 0
2007 Aug 14
4
Linear Regression with slope equals 0
Hi there, am trying to run a linear regression with a slope of 0.
I have a dataset as follows
t d
1 303
2 302
3 304
4 306
5 307
6 303
I would like to test the significance that these points would lie on a
horizontal straight line.
The standard regression lm(d~t) doesn't seem to allow the slope to be set.
Any help very welcome.
ed