Displaying 20 results from an estimated 80 matches similar to: "read in data, maintain decimal places"
2004 Mar 17
1
ANCOVA when you don't know factor levels
Hello people
I am doing some thinking about how to analyse data on dimorphic animals
- where different individuals of the same species have rather different
morphology. An example of this is that some male beetles have large
horns and small wings, and rely on beating the other guys up to get
access to mates, whereas others have smaller horns and larger wings,
and rely on mobility to
2011 Aug 12
1
Which Durbin-Watson is correct? (weights involved) - using durbinWatsonTest and dwtest (packages car and lmtest)
Hello!
I have a data frame mysample (sorry for a long way of creating it
below - but I need it in this form, and it works). I regress Y onto X1
through X11 - first without weights, then with weights:
regtest1<-lm(Y~., data=mysample[-13]))
regtest2<-lm(Y~., data=mysample[-13]),weights=mysample$weight)
summary(regtest1)
summary(regtest2)
Then I calculate Durbin-Watson for both regressions
2000 Aug 12
1
Nonlinear regression question
Dear R users
I recently migrated from Statistica/SigmaPlot (Windows) to R (Linux), so
please excuse if this may sound 'basic'.
When running a nonlinear regression (V = Vmax * conc / (Ks + conc), i.e.
Michaelis-Menten) on SigmaPlot, I get the output listed below:
>>>Begin SigmaPlot Output<<<
R = 0.94860969 Rsqr = 0.89986035 Adj Rsqr = 0.89458984
Standard Error of
2008 Nov 20
1
Checking collinearity using lmer
I am running a logistic regression model with a random effect using lmer. I am uncertain how to check for collinearity between my parameters. I have already run cor() and linear regression for each combination of parameters, and all Rsqr values were <0.8….but I am analyzing ecological data so a 0.8 cutoff may be unrealistic.
-is there a way to check variance inflation factors or tolerance
2008 May 21
1
split character string in matrix into character vector and numeric vector
Hello,
I've got a matrix consisting of one column with n rows. Each field in
the matrix is filled with a character vector.
I would like to convert this matrix into a character vector containing
the B03_MAH-type entries from the beginning of each row and a data.frame
that contains the numeric data, but I am stuck.
I have tried to use textConnection with sep = " " but since
2008 Aug 13
2
which alternative tests instead of AIC/BIC for choosing models
Dear R Users,
I am looking for an alternative to AIC or BIC to choose model parameters.
This is somewhat of a general statistics question, but I ask it in this
forum as I am looking for a R solution.
Suppose I have one dependent variable, y, and two independent variables,
x1 an x2.
I can perform three regressions:
reg1: y~x1
reg2: y~x2
reg3: y~x1+x2
The AIC of reg1 is 2000, reg2 is
2006 May 23
1
lattice package - question on plotting lines
Hi all,
I was trying to plot a graph using the following data:
method percent accuracy group
A1 4 0.8529 cns
A1 10 0.8412 cns
A1 15 0.8235 cns
A2 4 0.9353 cns
A2 10 0.9412 cns
A2 15 0.9471 cns
A1 4 0.8323 col
A1 10 0.8452 col
A1 15 0.8484 col
A2 4 0.8839 col
A2 10 0.8677 col
A2 15 0.8678 col
#################
The code I'm using to generate the graphs is:
### code :
2004 May 02
1
arima problems when using argument fixed=
As I am reading ?arima, only NA entries in the argument fixed=
imports. The following seems to indicate otherwise:
x <- arima.sim(model=list(ar=0.8), n=100) + (1:100)/50
> t <- 1:100
> mod1 <- lm(x ~ t)
>
> init1 <- c(0, coef(mod1)[2])
> fixed1 <- c(as.numeric(NA), 0)
>
> arima(x, order=c(1,0,0), xreg=t, include.mean=FALSE, init=init1,
fixed=fixed1)
2017 Sep 18
1
Data arrangement for PLSDA using the ropls package
Hello,
I would like to do a partial least square discriminant analysis (PLSDA) in R using the package "ropls"
Which is in R available via the R command :
source("https://bioconductor.org/biocLite.R")
I try to do a PLSDA to illustrate the impact of two genders (AP,C) on 5 compounds measured in persons (samples) should be illustrated. When I try to do a PLSDA I get the warning
2017 Dec 20
2
outlining (highlighting) pixels in ggplot2
Using the small reproducible example below, I'd like to know if one can
somehow use the matrix "sig" (defined below) to add a black outline (with
lwd=2) to all pixels with a corresponding value of 1 in the matrix 'sig'?
So for example, in the ggplot2 plot below, the pixel located at [1,3] would
be outlined by a black square since the value at sig[1,3] == 1. This is my
first
2006 Jan 10
1
extracting coefficients from lmer
Dear R-Helpers,
I want to compare the results of outputs from glmmPQL and lmer analyses.
I could do this if I could extract the coefficients and standard errors
from the summaries of the lmer models. This is easy to do for the glmmPQL
summaries, using
> glmm.fit <- try(glmmPQL(score ~ x*type, random = ~ 1 | subject, data = df,
family = binomial), TRUE)
> summary(glmmPQL.fit)$tTable
2003 Nov 24
0
link between arima and arma fit
Hi dear sirs,
I am wondering why the fit of the time serie x with an arima and the fit of
diff(x) with an arma (same coeff p & d) differ one from another
here are the output of R:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> modelarma<-arma(diff(x),c(7,5))
> modelarma
Call:
arma(x = diff(x), order = c(7, 5))
Coefficient(s):
ar1 ar2 ar3 ar4 ar5 ar6 ar7 ma1 ma2
0.06078
2006 Oct 11
1
extracting rows
Hi,
I have a matrix with few hundred by a few hundred and want to extract rows,
e.g. (0,1,0), or (1.3, 2.4, 4). I made an example:
> A = rep(rep(c(0,1),4),2)
> B = rep(rep(c(0,1),each=4),2)
> C = rep(rep(rep(c(0,1),2),each=2),2)
> X = data.frame(A,B,C,rnorm(16))
A B C
[1,] 0 0 0 0.72767870
[2,] 1 0 0 -0.09673298
[3,] 0 0 1 0.51192790
[4,] 1 0 1 -1.54350441
[5,] 0 1 0
2004 Feb 23
2
(2) Questions
Hi Fellows from R-Help List!
My questions are basic since i an new with R. I am very acquainted with Matlab &
Gauss (the compentence, I guess). Anyhow,
(1) I am trying to get R execute comands made or built as text, so that one can
feed a particular option with many variations coming from a text file. Is this
possible with the free version? For instance, there exists the eval comand in
2009 Jun 21
2
CPU high usage
Hi
I am using Xapian 1.012 here, trying to optimise the search preformance.
My testing suit has 10M docs of forum threads,
DB only indexed the thread title, author name, category name, and 1 optional
serialize value(0) which is the unix dateline
DB_full indexed all the DB terms + thread contents
After couple tests, I decided to remove ALL anchor terms such as
SHOW_PUBLIC, MORE_IMPORTANT
2010 Aug 01
3
remove extreme values or winsorize – loop - dataframe
Hi everyone!
#I need a loop or a function that creates a X2 variable
that is X1 without the extreme values (or X1 winsorized)
by industry and year.
#My reproducible example:
firm<-sort(rep(1:1000,10),decreasing=F)
year<-rep(1998:2007,1000)
industry<-rep(c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5,10),rep(6,10),rep(7,10),rep(8,10),rep(9,10),
rep(10,10)),1000)
X1<-rnorm(10000)
2017 Sep 18
0
Data arrangement for PLSDA using the ropls package
Hello,
I would like to do a partial least square discriminant analysis (PLSDA) in R using the package "ropls"
Which is in R available via the R command :
source("https://bioconductor.org/biocLite.R")
When I try to do a PLSDA using my own data.
The impact of two genders (AP,C) on 5 compounds measured in persons (samples) should be illustrated. When I try to do a PLSDA I get
2009 Jul 24
1
metafor
I had found the author's (Wolfgang Viechtbauer) earlier meta-analytic code in R, MiMa, useful. so I have been exploring metafor using an example dataset from MiMa. metafor provides a lot more. However, MiMa provided parameter estimates, standard errors, z values, etc. for individual moderators in the meta-analysis, but I don't see how to obtain these from metafor. Have you any help
2017 Dec 20
0
outlining (highlighting) pixels in ggplot2
Hi Eric,
you can use an annotate-layer, eg
ind<-which(sig>0,arr.ind = T)
ggplot(m1.melted, aes(x = Month, y = Site, fill = Concentration), autoscale
= FALSE, zmin = -1 * zmax1, zmax = zmax1) +
geom_tile() +
coord_equal() +
scale_fill_gradient2(low = "darkred",
mid = "white",
high = "darkblue",
2011 Dec 01
1
[LLVMdev] [llvm-testresults] bwilson__llvm-gcc_PROD__i386 nightly tester results
Are these 225 compile time regressions real? It sure looks bad!
Ciao, Duncan.
On 01/12/11 09:39, llvm-testresults at cs.uiuc.edu wrote:
>
> bwilson__llvm-gcc_PROD__i386 nightly tester results
>
> URL http://llvm.org/perf/db_default/simple/nts/380/
> Nickname bwilson__llvm-gcc_PROD__i386:4
> Name curlew.apple.com
>
> Run ID Order Start Time End Time
> Current 380