Displaying 20 results from an estimated 3000 matches similar to: "newbie question about index"
2006 Jun 30
1
Random numbers from noncentral t-distribution
Hi there:
I'd thought these two versions of noncentral t-distribution are essentially the same:
> qqplot(rt(1000,df=20,ncp=3),qt(runif(1000),df=20,ncp=3))
But, the scales of the x-axis and the y-axis are quite different according to the QQ-plot.
Did I make any mistakes somewhere?
Thanks,
Long
---------------------------------
2007 Nov 13
7
combine two dataframe
I have two data frame A and B adn want to cross them.
A has format as:
a1 a2 a3
1 2 3
2 3 1
1 3 2
...
B:
b1 b2
1 2
2 1
...
the combine result shall be something like
a1 a2 a3 b1 b2
1 2 3 1 2
1 2 3 2 1
2 3 1 1 2
2 3 1 2 1
1 3 2 1 2
1 3 2 2 1
....
is there a function able of doing this instead of loops?
Thanks,
Sun
2002 Aug 01
2
A question from a newbee...
Hello .
I have a little question ..
I work with Anova (aov) and Manova (manova) and want to print some result in a
text file. I see the results with the summary function or the summary.aov
function but i do not know how to save the differents probabilities of error
in a value.
Sorry for my poor English
Thanks a lot.
--
Lamoral Julien
2008 Jan 11
3
filtering data frame based on two columns
Hi,
I have a data frame df with column names a,b and c.
Now I want to get a subset of df that satified the condition a == 1 and b
== 2, how do I specify this.
For one condition like a == 1 I can use subdf = df[,df$a==1] to get the
right answer, but
subdf = df[,df$a==1 && df$b ==2] does not return the right answer.
Some quick tips please.
2007 Oct 09
2
AlgDesign--exact and approximate design
Hi
I am trying to generate a design using Algdesign and came across terms of
"exact design" and "approxiamte theory design", I did not find a reference
to explain what they are, could some one shed some light about this on me?
Another question is, I want to measure the main effects and at least two
interactions, variables are factors, how do I ensure this in formula,
2008 Mar 05
3
regex sulotion for seperating number and string
I have strings contain postcode and letters, some seperated with blank, some
with comma, and some hasn't seperated. eg, "2324gz" "2567 HK" "3741,BF"
I want to seperate the number and letters into two new variables.
I know this should be quite basic question, but searched on regex syntax and
that seems a bit scarey to me, any one can shot me a quick solution
2009 Mar 10
5
Changing factor to numeric
Dear Users,
I have a variable in my dataset which is of type factor. But it actually
contains numeric entries which like 5.735 4.759 ..... This is because the
data was read from a CSV file into R and this variable contained other
charaters which were not numeric. I have now dropped the records with the
characters which are not numeric for this variable and want to change it to
numeric srotage
2001 Nov 03
0
»ú²»¿Éʧ--½ô¼±ÇÀ×¢.info
»ú²»¿Éʧ--½ô¼±ÇÀ×¢.info
×÷ΪÐÅϢʱ´ú×îÃ÷È·±êÖ¾,.INFOµÄ·¢Õ¹¿Õ¼äÎãÓ¹¶à˵£¬Ëü½«³ÉΪÍøÂçÐÅÏ¢·þÎñµÄÊ×Ñ¡ÓòÃû¡£
.INFOΪͨÓö¥¼¶ÓòÃû£¬.INFO´ú±íÒ»°ãµÄÐÅÏ¢·þÎñʹÓá£Ëü×î´óµÄÌصãÊÇÈ«ÇòͨÓÃ,Ò×ÓÚʹÓÃ
£¬ºÜÇ¿µÄʶ±ðÐÔ£¬¿ÉÒÔÌæ´ú.COMµÄͨÓö¥¼¶ÓòÃû£¬·Ç³£ÊÊÓÃÓÚÌṩÐÅÏ¢·þÎñµÄÆóÒµ¡£
http://www.now.net.cn ʱ´´ÍøÂçÕýʽÍƳö.infoÓòÃûÕýʽע²á£¬×¢²áÁ÷³Ìͬ¹ú¼ÊÓòÃû
2007 Oct 10
2
how to generate and evaluate a design using Algdesign
Hi,
I have some problems when using AlgDesign->optFederov() generating
designs.
I have 6 variables, all factors. 3^2 and 4^4, I want to have a design that
can take care of main effects and two interactions within 2 pair of
variables v3-v4 and v5-v6, the following is the code
################
require(AlgDesign)
set.seed(1)
levels = c(v1=3,v2=3, v3=4,v4=4,v5=4,v6=4)
2006 Jun 14
3
Decimal series how to make.........
Hi List,
I am new to this Rsoftware, i want to make a sereis for example which is having values like this, s<- 0,0.1,0.2,0.3,0.4........,1
i tryed this statement
s<-0:0.1:1
but this giving an error megssage.
but by default increment 1 it is taking ,,,,,so what to do ,,
i want to use this varible in for loop..
like for(j in s)
thanks in advance
ANIL KUMAR( METEOROLOGIST)
LRF
2005 Jan 05
4
May i ask a question?
my version of wine is 20040408
when i use wine to install a software named "flashpgm"
it start the installshield,and a windows shows"The
operation system is not adequate for running Flash
programmer",and installation stoped.
All the imformation showed is as below:
fixme:nls:init_default_lcid charset GB18030 was not
recognized
err:dc:DCE_FreeWindowDCE [0x90031] GetDC() without
2005 Oct 10
2
wildcards and removing variables
All,
Is there are a wildcard in R for varible names as in unix? For example,
rm(results*)
to remove all variable or function names that begin w/ "results"?
cheers,
Dave
ps - please respond directly to afshar@miami.edu
[[alternative HTML version deleted]]
2007 Feb 14
2
environement.rb compent récupérer une variable ?
Salut,
Je souhaiterai définir dans mon fichier environement.rb une variable qui
puisse être récupéré dans mes controlleurs.
Plus précisément je souahiterai initialiser une varible avec l''ip du
serveur qui héberge l''appli et pouvoir la récupérer dans mes
controlleurs.
Je suis sur que c''est trés simple mais je n''ai pas trouvé l''info.
Merci !
--
2004 Oct 15
1
categorical varibles in coxph
Hello,
I wonder when I do coxph in R:
coxph( Surv(start, stop, event) ~ x, data=test)
If x is a categorical varible (1,2,3,4,5), should I creat four dummy
varibles for it? if yes, how can I get the overall p value on x other
than for each dummy variable?
Thanks
Lisa Wang
Princess Margaret Hospital
Phone 416 946 4501
2004 Oct 17
2
problems in the install microsoft office 2000 with wine
My systems is rh9, I installed the latest wine
(20040914), with a RPM package downloaded from
http://rpm.pbone.net/.
when I execued "wine setup.exe" (Note: it is in the
hardware, not in CDROM. I am not for sure whether it
is a problem). The following errors occured.
fixme:msi:MsiEnableLogA 00000516
"c:\\windows\\temp\\Office 2000 Premium
Setup(0008)_MsiExec.txt"
2009 Sep 23
2
[LLVMdev] About porting llvm-gcc frontend.
I am porting llvm-gcc frontend. We have ported GCC4.2 for our target. So I move *.h *.md and *.c to llvm-gcc. I do not implement any LLVM MACRO, and use default action of llvm-gcc. I get a new llvm-gcc for our target. But I get a bug.
/******************************/
//#include <stdio.h>
union MYunion {
unsigned char uc ;
int ui;
} myunion;
void vfu1(union MYunion u) {
u.ui =
2004 Aug 06
0
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
µÚÎå½ì±±¾©¡°¹ú¼ÊÖÜ¡±³ÏÑûÄúµÄ(¹«Ë¾¡¢ÆóÒµ)²Î¼Ó --
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
¡°ÊÀ½ç500Ç¿CEOÓëÖйú¶¥¼¶ÆóÒµÊ×ÄÔÂÛ̳¡±
»áÒé˵Ã÷£º
¾ÖлªÈËÃñ¹²ºÍ¹ú¹úÎñÔºÅú×¼£¬
ÖлªÈËÃñ¹²ºÍ¹ú¿Æѧ¼¼Êõ²¿¡¢Íâ¾Ã³²¿¡¢½ÌÓý²¿¡¢ÐÅÏ¢²úÒµ²¿¡¢Öйú¹ú¼ÊóÒ×´Ù½øίԱ»á¡¢¹ú¼Ò֪ʶ²úȨ¾ÖºÍ±±¾©ÊÐÈËÃñÕþ¸®¹²Í¬Ö÷°ì£¬
±±¾©ÊÐó´Ù»á³Ð°ìµÄ¡ª¡ªµÚÎå½ìÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ(ÒÔϼò³Æ¿Æ²©»á(¹ú¼ÊÖÜ)£¬
2004 Aug 06
0
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
µÚÎå½ì±±¾©¡°¹ú¼ÊÖÜ¡±³ÏÑûÄúµÄ(¹«Ë¾¡¢ÆóÒµ)²Î¼Ó --
Öйú±±¾©¹ú¼Ê¿Æ¼¼²©ÀÀ»áôßÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ
¡°ÊÀ½ç500Ç¿CEOÓëÖйú¶¥¼¶ÆóÒµÊ×ÄÔÂÛ̳¡±
»áÒé˵Ã÷£º
¾ÖлªÈËÃñ¹²ºÍ¹ú¹úÎñÔºÅú×¼£¬
ÖлªÈËÃñ¹²ºÍ¹ú¿Æѧ¼¼Êõ²¿¡¢Íâ¾Ã³²¿¡¢½ÌÓý²¿¡¢ÐÅÏ¢²úÒµ²¿¡¢Öйú¹ú¼ÊóÒ×´Ù½øίԱ»á¡¢¹ú¼Ò֪ʶ²úȨ¾ÖºÍ±±¾©ÊÐÈËÃñÕþ¸®¹²Í¬Ö÷°ì£¬
±±¾©ÊÐó´Ù»á³Ð°ìµÄ¡ª¡ªµÚÎå½ìÖйú±±¾©¸ßм¼Êõ²úÒµ¹ú¼ÊÖÜ(ÒÔϼò³Æ¿Æ²©»á(¹ú¼ÊÖÜ)£¬
2004 Oct 19
1
Error in grep
Hi, there.
I used the function read.maimages in limma package to analyze the microarray data .but I got following message
>RG <- read.maimages(targets$FileName, source="spot")
Error in grep(pattern, x, ignore.case, extended, value, fixed) :
invalid argument
I don't know what is the matter
Thanks a lot
Regards
Shizhu Zang
Department of Biochemsitry
Peking
2004 Oct 25
1
unable to open connection
Hi , there:
I used function source to download the package
but found
> source("http://www.bioconductor.org/getBioC.R")
Error in file(file, "r") : unable to open connection
In addition: Warning message:
unable to resolve 'www.bioconductor.org'.
Then I downloaded the packages from CRAN
and found
> local({a <- CRAN.packages()
+