Displaying 20 results from an estimated 600 matches similar to: "ggplot2, geomtile fill assignment"
2009 Feb 08
0
Initial values of the parameters of a garch-Model
Dear all,
I'm using R 2.8.1 under Windows Vista on a dual core 2,4 GhZ with 4 GB
of RAM.
I'm trying to reproduce a result out of "Analysis of Financial Time
Series" by Ruey Tsay.
In R I'm using the fGarch library.
After fitting a ar(3)-garch(1,1)-model
> model<-garchFit(~arma(3,0)+garch(1,1), analyse)
I'm saving the results via
> result<-model
2006 May 11
2
greco-latin square
Hi,
I am analyzing a repeated-measures Greco-Latin Square with the aov command.
I am using aov to calculate the MSs and then picking by hand the appropriate
neumerator and denominator terms for the F tests.
The data are the following:
responseFinger
mapping.code Subject.n index middle ring
little
----------------------------------------------------------------------------
1 1
2010 Dec 09
1
error in lrm( )
Dear Sir or Madam?
I am a doctor of urology,and I am engaged in developing a nomogram of bladder cancer. May I ask for your help on below issue?
I set up a dataset which include 317 cases. I got the Binary Logistic Regression model by SPSS.And then I try to reconstruct the model
?lrm(RECU~Complication+T.Num+T.Grade+Year+TS)? by R-Project,and try to internal validate the model through
2011 Jan 20
1
Problems with ecodist
Dear Dr.Goslee and anyone may intrested in matrix manipulate,
I am using your ecodist to do mantel and partial mantel test, I have
locality data and shape variation data, and the two distance matrixs are
given as belowings. When I run the analysis, it is always report that the
matrix is not square, but I didn't know what's wrong with my data. Would you
please help me on this. I am quite
2005 Aug 08
1
bug found in predict.locfit in locfit package (PR#8057)
Full_Name: Somkiat Apipattanavis
Version: 2.1.1
OS: Windows
Submission from: (NULL) (128.138.44.123)
Bug found in predict.locfit for density estimation
# Example of bug found in prdict.locfit (Locfit)
library('locfit')
# generate data
y =c(4281,2497,4346,5588,5593,3474,4291,2542,5195,4056,
3114,2864,4904,7625,3377,4001,4999,7191,8062,5668)
x1=c( 0.258729, 1.460156, 0.192323,
2005 Oct 05
0
bug found in predict.locfit in locfit package ( PR#8057)
Apologies for the coming to this late...
1. By now I hope Somkiat has realized that R-bugs is not the place to
report problems in contributed packages. Please direct such reports to
the package maintainer.
2. This is really user error. predict() expect the newdata to be a data
frame containing variables with the same names as those used in the
fitting process. E.g., you fitted the model with
2005 Dec 10
2
quantile regression problem
Dear List members,
I would like to ask for advise on quantile regression in R.
I am trying to perform an analysis of a relationship between species abundance
and its habitat requirements -
the habitat requirements are, however, codes - 0,1,2,3... where 0<1<2<3
and the scale is linear - so I would be happy to treat them as continuos
The analysis of the data somehow does not work, I am
2009 Mar 24
3
confidence interval or error of x intercept of a linear regression
Hello all,
This is something that I am sure has a really suave solution in R, but I can't quite figure out the best (or even a basic) way to do it.
I have a simple linear regression that is fit with lm for which I would like to estimate the x intercept with some measure of error around it (confidence interval). In biology, there is the concept of a developmental zero - a temperature under
2002 Jul 23
0
Comparing slopes of several linear models
Dear all
I have the following data (a shortened extract
shown; some replictates of time deleted) to which I
fitted the linear model given below:
time group mass
11 control 0.019
11 control 0.014
14 control 0.0306
14 control 0.0289
14 control 0.0236
17 control 0.0469
17 control 0.0709
11 five 0.0077
11 five
2012 Oct 15
3
Referring to matrix elements by name, iteratively
#Here is a vector of IDs
> cwaves
[1] 86 90 185 196 197 209 210 215 216 217 218
#Here is a matrix. The rows and columns correspond to the IDs in cwaves, and
the matrix is populated with a coefficient
> mat
86 90 185 196 209 210 215 216 217 218
86 0 0 0 0 0 0.00000 0 0.000000 0.000000 0.000000
90 0 0 0 0 0 0.00000 0
2001 Oct 16
4
two way ANOVA with unequal sample sizes
Hi,
I am trying a two way anova with unequal sample sizes but results are not
as expected:
I take the example from Applied Linear Statistical Models (Neter et al.
pp889-897, 1996)
growth rate gender bone development
1.4 1 1
2.4 1 1
2.2 1 1
2.4 1 2
2.1 2 1
1.7 2 1
2.5 2 2
1.8 2 2
2 2 2
0.7 3 1
1.1 3 1
0.5 3 2
0.9 3 2
1.3 3 2
expected results are
2010 Apr 30
0
extracting pairs from correlation matrix and p-value matrix
Dear All,
I am working on a large matrix of dimension 20000x700 say 'mat'. I
have calculated pearson correlation for the rows of the matrix and
their p-values using rcorr function in library Hmisc. Now I wish to
filter out those pairs who's PCC value is above 0.8 cut off and
p-value is less than 0.05.
>library(Hmisc)
>mat_cor=rcorr(t(mat),type="pearson")
2008 May 01
0
customization of pairwise comparison plots
I am wondering how to customize a pairwise comparisons plot of a factorial
ANOVA, without doing a lot of manual manipulation of a TukeyHSD object. The
customizations I'd like are:
1. The aov used log-transformed response data, but I'd like to plot the
intervals on their original, untransformed scales
2. Plot all the main and interaction effects together, rather than in a
separate
2010 Mar 13
3
format: from list to data frame
Dear users,
Is anyone out there on a Saturday to answer this easy question?
I have the "yo" object data in a "list" format:
> str(yo)
num [1:259, 1:173] 16.3 NA NA NA NA ...
- attr(*, "dimnames")=List of 2
..$ x: chr [1:259] "367319" "367329" "367309" "367339" ...
..$ y: chr [1:173] "780175"
2023 Nov 06
0
understanding predict.lm
Doh! Thanks very much. sg
On 11/6/23 5:17 PM, John Fox wrote:
> Dear Spencer,
>
> You need the t distribution with correct df, not the standard-normal
> distribution:
>
> > pt(-z.confInt/2, df=13)
> ??? 1???? 2???? 3???? 4???? 5???? 6???? 7???? 8???? 9??? 10??? 11
> 0.025 0.025 0.025 0.025 0.025 0.025 0.025 0.025 0.025 0.025 0.025
> ?? 12??? 13
> 0.025
2011 Mar 13
1
How to draw different series for different groups in xyplot
Hi guys,
I got a problem when I was trying to use lattice to do some plot. Below is
one working example which can generate one curve for A and one curve for B
in each subplot. However, I would like to just show the points for B, not
connecting the dots. As for A, I still want a curve (dots are connected). Is
there any people having any suggestions. Data are attached. Thanks a lot,
--Jerry
2005 May 04
1
Calculate median from counts and values
I am tangled with a syntax question. I want to calculate basic statistics
for a large dataset provided in weights and values and I can't figure out
an elegant way to expand the data.
For example here are the counts:
> counts
n4 n3 n2 n1 p0 p1 p2 p3 p4
1 0 0 0 1 1 3 16 55 24
2 0 0 0 0 2 8 28 47 15
3 1 17 17 13 4 5 12 24 8
...
and the values:
> values
2019 May 06
0
R optim(method="L-BFGS-B"): unexpected behavior when working with parent environments
That's consistent/not surprising if the problem lies in the numerical
gradient calculation step ...
On 2019-05-06 10:06 a.m., Ravi Varadhan wrote:
> Optim's Nelder-Mead works correctly for this example.
>
>
>> optim(par=10, fn=fn, method="Nelder-Mead")
> x=10, ret=100.02 (memory)
> x=11, ret=121 (calculate)
> x=9, ret=81 (calculate)
> x=8, ret=64
2011 Apr 28
1
Extract complete rows by group and maximum
Hi
I'm trying to extract complete rows from a dataframe by group based on
the maximum in a column within that group.
Thus I have a dataframe:
cvd_basestudy ... es_time ...
_____________
study1 ... 0.3091667
study2 ... 0.3091667
study2 ... 0.2625000
study3 ... 0.3033333
study3 ... 0.2625000
__________
etc
I can extract the basestudy and the max(es_time)
2019 May 06
1
R optim(method="L-BFGS-B"): unexpected behavior when working with parent environments
It seems that it's an old bug that was found in some other packages, but
at that time not optim:
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15958
and that Duncan Murdoch posted a patch already last Friday :)
Thomas
Am 06.05.2019 um 16:40 schrieb Ben Bolker:
> That's consistent/not surprising if the problem lies in the numerical
> gradient calculation step ...
>