Displaying 20 results from an estimated 9000 matches similar to: "subset"
2004 Sep 21
3
how to take this experiment with R?
How about:
x <- data.frame(matrix(rnorm(1550),c(50,31)))
model <- step(lm(x[,1] ~ as.matrix(x[,2:31])))
--Matt
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of rongguiwong
Sent: Monday, September 20, 2004 20:52 PM
To: r-help at stat.math.ethz.ch
Subject: [R] how to take this experiment with R?
This message uses
2011 Dec 13
8
How to compute 95%CI for OR from logistic regression?
Hi all:
My data has 3 variables:
age(3levels : <30y=1 30-50y=2, >50y=3)
gender(Male=0, Female=1)
CD4 cell count(raw lab measurement)
y(1:death 0:alive)
I perform logistic regression to find out the factors that influence y.
result<-glm(y ~ factor(age) + factor(gender) + CD4,family = binomial)
>From the result,I can get OR(Odds Ratio) of gender via exp(Estimate of Female,
2004 Oct 22
4
Evaluate a function for various value of parameters
Hello list,
I have a problem ... and do not know how to solve it.
I would like create a function that estimate the quality of the fit of
different functions with different values of parameters.
This problem is related to the following one:
I would like to create a function "evaluatemyfunction" which evaluate a
function f for different values of parameters. For instance, if
2011 Dec 24
2
readLines errors
Hi All,
I met a problem using readLines function to return the data from Google
maps.
readLines(url("
http://ditu.google.cn/maps/geo?q=+qianshuichong,+guichi+anhui,+CN&output=csv&key=ABQIAAAAq8Fnd_oUka-7RdS6BrD7GBTqeABoQuNTXS36G_rkiwQnKRW6GBTkns8JpKz6y6dScgB8827dlddUlg"),
n=1, warn=FALSE)
[1] "200,4,30.6528380,117.4872250"
The above code is ok because the
2011 Nov 20
3
logistic regression by glm
HI
I use glm in R to do logistic regression. and treat both response and
predictor as factor
In my first try:
*******************************************************************************
Call:
glm(formula = as.factor(diagnostic) ~ as.factor(7161521) +
as.factor(2281517), family = binomial())
Deviance Residuals:
Min 1Q Median 3Q Max
-1.5370 -1.0431 -0.9416 1.3065 1.4331
Coefficients:
2009 May 21
1
"Error: C stack usage is too close to the limit" (can't understand explanations of how to fix this)
Apparently the way to deal with this error message is to set
R_CStackLimit = (uintptr_t)-1
I tried typing this in the R console, but it says Error: object
"R_CStackLimit" not found.
So where do I type it? In one of the initialization files that R uses when
it starts up?
I can't find the answer anywhere. Please note that I don't understand words
like "DLL" or
2009 May 07
2
How to call time series functions from C ?
Hi everyone,
I meet the problem to call R from C.
Can someone tell me is it possible to call time series functions(such as ar and arima)from C program on linux platform, and then compile the C program to a standalone executable file?
I know we can call some function defined in Rmath.h , but I have not found the entry point for time series function.
I would very much appreciate
2010 May 31
2
about heatmap
Hi all:
As to the "heatmap" function, the default style is "red and yellow",and red refers to low level and yellow refers to high level.
How can I change the style to the contrary: red refers to high level and yellow refers to low level?
Thanks a lot!
My best
[[alternative HTML version deleted]]
2009 May 19
2
About " Error: C stack usage is too close to the limit"
Hi everyone!
I meet one problem when embedding R in C code, when I run the the R code in one child thread ,
it always print error info:
Error: C stack usage is too close to the limit
I also try to set R_CStackLimit = (uintptr_t)-1 to disable the C stack check as the R-exts doc say,
but it still does not work, the error info still exist.
Besides it is interesting that if i
2002 Aug 17
1
ͨÓÃÍøÖ·-----Ö±½ÓÊäÈëÆóÒµ¡¢²úÆ·¡¢ÍøÕ¾µÄÃû³Æ£¬¼´¿ÉÖ±´ïÄ¿±êÍøÕ¾
Èç¹û±¾Óʼþ¸øÄã´øÀ´Á˲»±ã£¬ÎÒÃÇÉî¸Ð±§Ç¸£¬ÇëÁ¢¼´°ÑËüɾ³ý£¬
²¢À´ÐÅ˵Ã÷£¬ÎÒÃǽ«²»»áÔٴδòÈÅ¡£
ͨÓÃÍøÖ·-----Ö±½ÓÊäÈëÆóÒµ¡¢²úÆ·¡¢ÍøÕ¾µÄÃû³Æ£¬¼´¿ÉÖ±´ïÄ¿±êÍøÕ¾.ÎÞÐè¼ÇÒ临ÔÓ
µÄÓòÃû¡¢ÍøÖ·£¬ÎÞÐèhttp://¡¢www ¡¢.com¡¢.netµÈÇ°ºó׺ ÊǼÌIP¡¢ÓòÃûÖ®ºó£¬×îÏÈ
½ø¡¢×î¿ì½Ý¡¢×î·½±ãµÄµÚÈý´ú»¥ÁªÍø·ÃÎʱê×¼ ¡£ÔÊÐí¸öÈË×¢²á£¬¿ª·Å
ͨÓôʻã×¢²á²¢¿É×ÔÓÉתÈã¬ÉÌ»úÎÞÏÞ£¡¡°Í¨ÓÃÍøÖ·¡±ÔÚÏß×¢²á£¬Ãâ·ÑÊÔÓÃÊ®Ì죬24
2012 Jan 11
3
64bit R under 32bit winxp
Hi all:
My OS is 32bit winxp,but I wanna install 64bit R2.14.1.
>From the following website,it says "You can also go back and add 64-bit components to a 32-bit install, or vice versa"
http://cran.r-project.org/bin/windows/rw-FAQ.html#Can-both-32_002d-and-64_002dbit-R-be-installed-on-the-same-machine_003f
Does it mean that I can install and run 64bit R2.14.1 under 32bit
2007 Aug 26
3
subset using noncontiguous variables by name (not index)
Hi All,
I'm using the subset function to select a list of variables, some of
which are contiguous in the data frame, and others of which are not. It
works fine when I use the form:
subset(mydata,select=c(x1,x3:x5,x7) )
In reality, my list is far more complex. So I would like to store it in
a variable to substitute in for c(x1,x3:x5,x7) but cannot get it to
work. That use of the c function
2010 Aug 25
4
Xen 4.0 - Support for Citrix WHQL-certified Windows PV drivers
Hi.
I have the same problem, which described in:
http://lists.xensource.com/archives/html/xen-users/2010-07/msg00241.html
I''m using Debian Squeeze (2.6.32-5-xen-amd64) in Dom0, Xen 4.0.1-rc6,
Windows 2008, 2003 x86_64 in domU
After installing drivers from
http://www.xen.org/files/XenCloud/Software/0.5/XCP-base-0.5.iso, system
stops on progress bar in normal boot, but ok in safe mode.
In
2015 Aug 04
2
[LLVMdev] [BUG] Incorrect ASCII escape characters on Mac
Hi,
The bug originated when one of our tests failed with an
answer-mismatch on Mac, after upgrading to XCode 6.2. The internal IR
after all our transforms, and just before it hits the final LLVM
lowering is identical on Mac and Linux:
var t6 : int8_T{col}[10] = {34, -48, 18, -12, 33, 0, 21, -7, -20, -31};
The LLVM lowering itself doesn't try to do anything smart. When we
dumpModule, we
2012 Aug 01
2
how to subset the data frame by lines
I defined a data.frame by a two-dimensional array.
> aa = data.frame(rbind( 11:20, 1:10))
> aa
X1 X2 X3 X4 X5 X6 X7 X8 X9 X10
1 11 12 13 14 15 16 17 18 19 20
2 1 2 3 4 5 6 7 8 9 10
Now I want to use the data in the second line of aa which from 1 to 10 to
output.But I find that when I use the aa[[1]][1:10] and it seems be mistake.
aa[[1]][1:10]
[1] 11 1 NA NA NA
2009 Sep 04
1
User defined function's argument as Subset function's input
Dear R users,
I have a data where I desire to subset according to certain conditions.
However, the script is very messy as there are about 30 distinct conditions.
(i.e. same script but with different conditions)
I would like to make a user defined function so that I can input the desired
conditions and just get the results accordingly.
Below is an arbitrary data set & sample statements
2011 Mar 22
1
help need on working in subset within a dataframe
Dear R-experts
Execuse me for an easy question, but I need help, sorry for that.
>From days I have been working with a large dataset, where operations are
needed within a component of dataset. Here is my question:
I have big dataset where x1:.....x1000 or so. What I need to do is to work
on 4 consequite variables to calculate a statistics and output. So far so
good. There are more vector
2005 Jul 06
2
Frustrating problem with natsemi (DP83815) ethernet devices
[Sorry if this is off-topic for this list, please advise me if there''s a
better place to ask this]
I have an embeded motherboard with 4 natsemi (DP8315) ethernet chips.
I''m running a 2.6.9 kernel (I''ve tried 2.6.11 too) and a very minimal
Slackware distribution.
Now about the problem:
The network interfaces seem to NOT transmit anything when the interface
is
2011 Jul 07
2
subset from a dataset after comparing its one column to a related vector
Hello R users,
I have two data sets like the following. Form of dataset:
data:
X1 X2 X3 X4 X5
1902 RE 3 594 9
1903 RE 3 1340 7
1904 AA 3 760 14
1908 RE 4 1759 18
1909 EX 2 387 1
2901 AU 6 3116
2012 Apr 16
2
libvirt slow responding after define poool with existing VG with some other lv
If I add VG with some other lv-s to libvirt pool then libvirt slow
responding. How to fix it?
<pool type='logical'>
<name>LVM_MAIN</name>
<uuid>a2713bed-ad4a-fb79-83b5-65a9e8f1094e</uuid>
<capacity>0</capacity>
<allocation>0</allocation>
<available>0</available>
<source>