Displaying 20 results from an estimated 2000 matches similar to: "if statement"
2007 Oct 10
3
save lm output into vectors
Hi,
May I ask how I can save the coefficients and the p values into a table?
thanks.
jiong
The email message (and any attachments) is for the sole...{{dropped:11}}
2007 Oct 09
2
regression by groups
Hi All,
I want to run regression (lm) on my dependant variable by gender and race. How do I integrate the "by" function in lm?
thanks.
jiong
The email message (and any attachments) is for the sole...{{dropped:11}}
2007 Jun 27
2
running saved scripts
Hi All,
I have a rather naive question. I need to run some simple calculations
such as read.table, resid, and quantile on a data file. How can I save
these commands in a text file and ask R to run this text file? Thanks.
Jiong Zhang
The email message (and any attachments) is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use,
2007 Aug 17
2
problem using "rank"
Hi All,
I had 12766 elements in a column, 12566 are values and 200 are "NA"s. I used the following line to get the ranks:
total_list$MB.rank <- rank(-total_list$MB,ties.method="min",na.last=NA)
but I got an error message:
Error in `$<-.data.frame`(`*tmp*`, "BCRP_PW_F.rank", value = c(3949, 6182, :
replacement has 12199 rows, data has 12766
What
2007 Jun 28
1
stack multiple plots on one page
Hi All,
I typed "pairs" to see its code but did not get what I want. How do I
see its code?
What I am trying to do, is to stack about 10 scatter plots on one page
as the way "pairs" does. I have about 150 variables in my table.
Instead of plotting 150X150 pairs using "pairs", I only need to plot 10
pairs.
Thanks.
jiong
The email message (and any attachments) is
2007 May 30
2
runif with weights
Dear all,
I would like to generate 25 numbers from 1 to 100 but I would like to have some numbers that could be more probable to come out. I was thinking of the function runif:
runif(25, 1, 100) , but I don?t know how to give more weight to some numbers.
Example:
each number from 2 to 10 has the probability of 40% to come out but the probability of each number from 11 to 100 to come out is
2007 Mar 11
1
using scan to record user's input
I'm using scan in a script to record a series of responses of the user as
a function
of some graphs that I put up on the screen. A toy version would be,
y <- rep(NA, 3)
for (ix in seq( length(y) ) ) {
y[ix] <- scan( n = 1 )
}
However, if I include any code after this loop, for example,
y <- rep(NA, 3)
for (ix in seq( length(y) ) ) {
y[ix] <- scan( n = 1 )
}
y
I get an error
2009 Jan 29
1
In Rd: \describe \itemize and \item
I rebuilt a test version of my yaImpute package using Uwe Ligges' windows
build service.
I got this reply: Check result: OK
R version 2.9.0 Under development (unstable) (2009-01-27 r47756)
Here is the issue: I have the following construct in help files (this
example relates to "data"):
\format{
A data frame with 847 rows and 29 columns: \cr\cr
Ground based measurements of
2007 May 21
3
Selecting complementary colours
Dear r-helpers,
I wonder whether, given the "#rrggbb" representation of a colour, there is a
simple way to select the complementary colour, also expressed as a "#rrggbb"
string.
Any suggestions would be appreciated.
John
--------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
2010 Feb 02
2
barplot y axis too short
Hello,
The function barplot automatically creates a y-axis that doesn't necessarily
cover the range of y-values to be plotted. I know how to manually create my
own y-axis so that it does cover the range, but I was wondering if there is
some parameter to change so that the scale of the y-axis is automatically
taller than the tallest bar.
I thought setting xpd=F would do it, since it says that
2007 May 06
7
A function for raising a matrix to a power?
Hi,
Is there a function for raising a matrix to a power? For example if you like to compute A%*%A%*%A, is there an abbreviation similar to A^3?
Atte Tenkanen
> A=rbind(c(1,1),c(-1,-2))
> A
[,1] [,2]
[1,] 1 1
[2,] -1 -2
> A^3
[,1] [,2]
[1,] 1 1
[2,] -1 -8
But:
> A%*%A%*%A
[,1] [,2]
[1,] 1 2
[2,] -2 -5
2005 Aug 29
1
ylim for graphic
Dear list:
I have some data for which I am generating a series of barplots for
percentages. One issue that I am dealing with is that I am trying to get
the legend to print in a fixed location for each chart generated by the
data. Because these charts are being created in a loop, with different
data, my code searches the data to identify the maximum value in the
data and then print the data values
2013 Mar 23
3
[LLVMdev] About commit TILE-Gx backend to community repository and default disabled
on 2013/3/23 1:52, Chris Lattner wrote:
> On Mar 19, 2013, at 8:58 PM, Jiong Wang <jiwang at tilera.com> wrote:
>
>> Hi Chris,
>>
>> could you please comment on committing TILE-Gx backend into community?
> Hi Jiong,
>
> I don't have any special advice here. It sounds like the general functionality level is high enough. Taking it into mainline sounds
2009 Mar 12
1
Cross-validation -> lift curve
Hi all,
I'd like to do cross-validation on lm and get the resulting lift curve/table
(or, alternatively, the estimates on 100% of my data with which I can get
lift).
If such a thing doesn't exist, could it be derived using cv.lm, or would we
need to start from scratch?
Thanks!
--
Eric Siegel, Ph.D.
President
Prediction Impact, Inc.
Predictive Analytics World Conference
More info:
2013 Mar 07
2
[LLVMdev] [RFC] TileGX, a new backend for Tilera's many core processor
On Thu, Mar 7, 2013 at 6:33 PM, Jiong Wang <jiwang at tilera.com> wrote:
> Hi all,
>
> Updated the patches for TILE-Gx backend:
>
> 1. added initial regression tests for tilegx codegen.
> 2. added initial regression tests for MC Layer.
> 3. fixed those commenting style issues.
>
> please review, thanks.
This is a huge patch, and reviewing it in tar.gz is hard. To
2013 Mar 01
3
[LLVMdev] RFC: TileGX, a new backend for Tilera's many core processor
On 03/01/2013 02:57 PM, Hal Finkel wrote:
Hi Hal,
thanks for feedback.
> Jiong, I am happy to see the Tile backend being offered for upstream inclusion. Among other things, in the long run, this may help inform and motivate many-core capabilities in LLVM.
>
> First, can you elaborate on the future maintenance and development plans for the target code? Do you plan to add SIMD support?
2013 Mar 23
0
[LLVMdev] About commit TILE-Gx backend to community repository and default disabled
On 03/23/2013 10:51 AM, Jiong Wang wrote:
> on 2013/3/23 1:52, Chris Lattner wrote:
>> On Mar 19, 2013, at 8:58 PM, Jiong Wang <jiwang at tilera.com> wrote:
>>
>>> Hi Chris,
>>>
>>> could you please comment on committing TILE-Gx backend into community?
>> Hi Jiong,
>>
>> I don't have any special advice here. It sounds like the
2013 Mar 20
2
[LLVMdev] About commit TILE-Gx backend to community repository and default disabled
Hi Chris,
could you please comment on committing TILE-Gx backend into community?
========== TILE-Gx Status ===========
Features Supported
===
1. general function.
2. PIC/TLS/JumpTable.
3. Instructoin Bundling for VLIW.
4. Asm Parser
5. MC Layer (aware of instruction bundle), MCJIT support.
6. Initial regression tests for CodeGen & MC Layer.
Regression Result
===
Expected Passes : 13363
2013 Apr 11
2
[LLVMdev] Migration from JIT to MCJIT
Andrew,
I've attached a small reproduction of the issue.
Reproduce by:
$ /usr/bin/g++ `llvm-config --cxxflags` -g -m32 -c mcjit_external_symbol.cpp
$ /usr/bin/g++ `llvm-config --ldflags` -g -m32 -o mcjit_external_symbol mcjit_external_symbol.o `llvm-config --libs all`
$ ./mcjit_external_symbol
verifying...
LLVM ERROR: Program used external function '_external' which could not be
2013 Mar 03
0
[LLVMdev] AESOP autoparallelizing compiler
On 03/03/2013 02:09 PM, Timothy Mattausch Creech wrote:
> Hi,
> We would like to inform the community that we're releasing a version of our research compiler, "AESOP", developed at UMD using LLVM. AESOP is a distance-vector-based autoparallelizing compiler for shared-memory machines. The source code and some further information is available at
>
>