Displaying 20 results from an estimated 20000 matches similar to: "A simple question"
2007 Oct 17
3
Trouble with R CMD INSTALL
Why does R CMD INSTALL work for some packages (e.g., lme4) but not
others (e.g., nlme)?
Thanks,
Gang
2006 Jun 28
3
Problem with package sem
Hi experts,
I just started to learn R today, and tried to work with an add-on
package sem. I have a version of 2.3.1 on MacOS X 10.4.6 with sem put
under /Library/Frameworks/R.framework/Versions/2.3/Resources/library
However when I typed
library(sem)
the following error showed up:
Error in library(sem) : 'sem' is not a valid package -- installed <
2.0.0?
Why is this?
Thank
2007 Dec 06
2
Any package for deconvolution?
I want to run deconvolution of a time series by an impulse or point-spread function through Wiener filter, regularized filter, Lucy-Richardson method, or any other approaches. I searched the CRAN website and the mailing list archive, but could not find any package for such a deconvolution analysis. Does anybody know an existing R function for deconvolution?
TIA,
Gang
2008 Feb 28
3
Collapse an array
Suppose I have a 4-D array X with dimensions (dx, dy, dz, dp). I want
to collapse the first 3 dimensions of X to make a 2-D array Y with
dimensions (dx*dy*dz, dp). Instead of awkward looping, what is a good
way to do this? Is there a similar function like reshape in Matlab?
Thanks,
Gang
2007 Nov 07
2
Trouble in creating a list
I want to create a list based on the information from a data.frame,
Model. So I tried the following:
MyList <- list(colnames(Model)[2] = levels(Model$(colnames(Model)[2])))
but it failed with an error:
Error: unexpected '=' in "list(colnames(Model)[2] ="
I have the following problems with this command line:
(1) I wanted to use colnames(Model)[2] as a tag for the list:
2008 Jan 17
2
Trouble receiving messages from the mailing list
For some unknown reason I stopped receiving any messages from the R-
help mailing list. See if this test gets through.
Thanks,
Gang
2007 Oct 29
3
Converting a string
This must be very simple, but I'm stuck. I have a command line in R
defined as a variable of a string of characters. How can I convert
the variable so that I can execute it in R?
Really appreciate any help,
Gang
2015 Feb 22
2
[LLVMdev] Eliminating redundant loads
Hi,
I am generating following code:
%base = getelementptr inbounds %ravi.CallInfo* %6, i32 0, i32 4, i32 0
%7 = load %ravi.TValue** %base
%8 = bitcast %ravi.TValue* %7 to i8*
%9 = bitcast %ravi.TValue* %5 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %8, i8* %9, i32 16, i32 8, i1 false)
%10 = load %ravi.CallInfo** %L_ci
%base1 = getelementptr inbounds %ravi.CallInfo* %10, i32 0,
2015 Feb 23
2
[LLVMdev] Eliminating redundant loads
On 22 February 2015 at 22:54, Hal Finkel <hfinkel at anl.gov> wrote:
>> I tried setting the module's DataLayout to the engine's DataLayout.
>> Don't see any improvement.
>> The memcpy() is to perform a struct assign, so I tried replacing that
>> with member by member store.
>> But even then the loads are not being eliminated so I guess the
>>
2007 Oct 29
1
How to test combined effects?
Suppose I have a mixed-effects model where yij is the jth sample for
the ith subject:
yij= beta0 + beta1(age) + beta2(age^2) + beta3(age^3) + beta4(IQ) +
beta5(IQ^2) + beta6(age*IQ) + beta7(age^2*IQ) + beta8(age^3 *IQ)
+random intercepti + eij
In R how can I get an F test against the null hypothesis of
beta6=beta7=beta8=0? In SAS I can run something like contrast age*IQ
1,
2007 Aug 02
6
Error message in lmer
I do not think anyone has answered this.
> I'm trying to run a simple one-way ANCOVA with the lmer
> function in R package lme4, but have encountered some
> conceptual problem. The data file MyData.txt is like this:
>
> Group Subj Cov Resp
> A 1 3.90 4.05
> A 2 4.05 4.25
> A 3 4.25 3.60
> A 4 3.60 4.20
> A 5 4.20 4.05
> A 6 4.05 3.85
2007 Jun 20
2
Extracting t-tests on coefficients in lm
I am writing a resampling program for multiple regression using lm(). I
resample the data 10,000 times, each time extracting the regression
coefficients. At present I extract the individual regression
coefficients using
brg = lm(Newdv~Teach + Exam + Knowledge + Grade + Enroll)
bcoef[i,] = brg$coef
This works fine.
But now I want to extract the t tests on these coefficients. I cannot
2018 Feb 04
1
Unexpected behaviour from read.table
I?ve been struggling with seemingly ?corrupt? data.frames for a few days, and believe I?ve narrowed the problem down to some odd behaviour from read.table
I receive a tab delimited file from an external provider where strings are encoded as =?content?. Not sure why, perhaps as most users open it in Excel.
My specific issue is that trailing spaces in any of the strings are causing strange results
2012 May 10
1
Error t value matrix
Hi all,
I want to make the following:
I want to run a linear regression on each column of a matrix "estima" on
the correspondent column on the matrix "estima2".
You see I want to regress estima[,1] on estima2[,1] this way to all
columns....
At the same time I want to make a regression adding each time a new
observation.
You see, the first regression will regress only one
2009 Nov 04
1
vglm(), t values and p values
Hi All,
I'm fitting an proportional odds model using vglm() from VGAM.
My response variable is the severity of diseases, going from 0 to 5 (the
severity is actually an ordered factor).
The independent variables are: 1 genetic marker, time of medical observation,
age, sex. What I *need* is a p-value for the genetic marker. Because I have ~1.5
million markers I'd rather not faffing
2012 Aug 27
2
Assigning colors on low p-values in table
Hi all R-users,
I?m trying to assign colors on those p-value in my table output that fall
above a certain critical value, let?s say a p-value >0.05.
My table looks like this:
Assets ADF-Level P-Value
ADF-First D P-Value ADF-Second D P-Value
[1,] Liabilities -2.3109 0.1988 -3.162
0.025 -6.0281
2009 Jan 06
5
Using apply for two datasets
I can run one-sample t-test on an array, for example a matrix myData1,
with the following
apply(myData1, 2, t.test)
Is there a similar fashion using apply() or something else to run
2-sample t-test with datasets from two groups, myData1 and myData2,
without looping?
TIA,
Gang
2008 Apr 07
3
Extract values from a named array
Sorry for this dumb question. Suppose I have a named array ww defined as
ww <- 1:5
names(ww) <- c("a", "b", "c", "d", "e")
How can I extract the whole array of numbers without the names?
ww[1:5] does not work while ww[[1]] can only extract one number at a
time.
Thanks,
Gang
2008 Oct 02
4
Load a program at the front end
I want to run a R program, prog.R, interactively. My question is, is
there a way I can start prog.R on the shell terminal when invoking R,
instead of using source() inside R?
TIA,
Gang
2009 Jan 14
5
How to compute p-Values
Hello.
How can I compute the Bootstrap p-Value for a one- and two sided test, when I have a bootstrap sample of a statistic of 1000 for example?
My hypothesis are for example:
1. Two-Sided: H0: mean=0 vs. H1: mean!=0
2. One Sided: H0: mean>=0 vs. H1: mean<0
I hope you can help me
Thanks in advance
Regards,
Andreas