search for: azam

Displaying 20 results from an estimated 40 matches for "azam".

Did you mean: adam
2008 Sep 10
6
request: most repeated component of a list
...4 1 0 0 [3,] 4 4 1 0 0 [4,] 4 4 0 0 0 For 200 components i want to make a frequency table. How can i make a frequency table of these components or the most repeated component out of all? Any help in this regard will be appreciated. Muhammad Azam [[alternative HTML version deleted]]
2010 Jun 09
3
bootpred for multinomial
I applied bootpred for multinomial logistic reg. (with nnet package). I used same as theta.fit and theta.predict of R for my data. but give me error. Can I do this with response vriable;7 levels predictor variables:5 (1 classifier, 4 continuous)?   Thanks alot Azam   [[alternative HTML version deleted]]
2008 Oct 14
4
request: How to ignore columns having zero sums
...array(x, dim=c(4,6)) output is > x1 [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1 2 3 4 0 0 [2,] 1 2 3 4 0 0 [3,] 1 2 3 4 0 0 [4,] 1 2 3 4 0 0 How can i ignore columns having zero sums? Help in this regard is needed. Thanks M.Azam [[alternative HTML version deleted]]
2008 Jun 06
5
request: a class having max frequency
...t find the required result. using dat <- pima f <- table(dat[,9]) > f 0 1 500 268 i want to find that class say "0" having maximum frequency i.e 500. I used >which.max(f) which provide 0 1 How can i get only the "0". Thanks and best regards Muhammad Azam Ph.D. Student Department of Medical Statistics, Informatics and Health Economics University of Innsbruck, Austria [[alternative HTML version deleted]]
2008 Sep 07
0
Fwd: request: most repeated sequnce
---------- Forwarded message ---------- From: jim holtman <jholtman at gmail.com> Date: Sun, Sep 7, 2008 at 11:42 AM Subject: Re: [R] request: most repeated sequnce To: Muhammad Azam <mazam72 at yahoo.com> This should do it for you: > x=c(1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,0,0,0,0,0,0,0,0,0,0,1,1,1,2,2,3,3,3,4,4,4,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,3,4,4,4, + 0,0,0,0,0,0,1,2,2,2,2,2,0,3,3,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,...
2008 Oct 15
3
request: How can we ignore a component of list having no element
...,] 3 1 3 1 3 2 1 [6,] 3 1 3 1 3 2 0 [[4]] [,1] [,2] [,3] [,4] [1,] 3 0 0 0 [2,] 3 1 3 3 [3,] 3 1 3 3 [4,] 3 1 3 0 OR x1=c(1,2,3); x2=c(1,2,3,4,6); x3=c(); x=list(x1,x2,x3) M.Azam [[alternative HTML version deleted]]
2008 May 28
3
request: which integer in each column is in majority
.... I am looking for some kind reply. Thanks example: > x=matrix(c(1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,1,2,3,3),ncol=4) > x [,1] [,2] [,3] [,4] [1,] 1 2 3 4 [2,] 1 2 4 1 [3,] 1 3 4 2 [4,] 2 3 4 3 [5,] 2 3 4 3 best regards Muhammad Azam Ph.D. Student Department of Medical Statistics, Informatics and Health Economics University of Innsbruck, Austria [[alternative HTML version deleted]]
2008 Sep 06
2
request: most repeated sequnce
...w-wise) of values in each sector. e.g. in sector 1 i.e. , , 1 the most repeated sequence is 1 (ignoring zeros). In , , 2 the most repeated sequence is 1 2 3. Similarly in last sector i.e. , , 5 such sequence is 2 2 3 4. Any body can help to solve this problem. Thanks best regards Muhammad Azam [[alternative HTML version deleted]]
2008 Sep 03
2
request: How to get column name
...,8,8); x=matrix(x, nrow=4) the output is > x [,1] [,2] [,3] [,4] [1,] 3 0 5 8 [2,] 3 0 5 8 [3,] 3 0 5 8 [4,] 3 0 5 8 In this case the required column is second so the result should be "2". How can i get it? best regards Muhammad Azam [[alternative HTML version deleted]]
2010 Jun 08
2
cross-validation
Hi   I want to do leave-one-out cross-validation for multinomial logistic regression in R. I did multinomial logistic reg. by package nnet in R. How I do validation? by which function? response variable has 7 levels   please help me   Thanks alot Azam [[alternative HTML version deleted]]
2008 Jun 02
2
request: To add an extra row in a matrix
...rix having just one row. e.g. b <- matrix(7:9,1,3) > b [,1] [,2] [,3] [1,] 7 8 9 Now i want to get result like this [,1] [,2] [,3] [1,] 1 3 5 [2,] 2 4 6 [3,] 7 8 9 Can any body help to get the required result. Thanks and best regards Muhammad Azam Ph.D. Student Department of Medical Statistics, Informatics and Health Economics University of Innsbruck, Austria [[alternative HTML version deleted]]
2007 Oct 31
2
survey weights in sample with replacement
>> Hi, I am trying to draw a random sample from an household survey with sample weight. Is there any function in R or Splus which allows this. Regards, ******************************************************* Mehtabul Azam Department of Economics Southern Methodist University Dallas TX 75275-0496 Tel: (214) 214 938 3906 Email: mazam at smu.edu <mailto:mazam at smu.edu> Web: http://people.smu.edu/mazam
2008 Dec 01
1
request: how to assign alphabets to integer values
...s; dl=nrow(ds) c1=ds[,1]; c2=ds[,2]; c3=ds[,3]; c4=ds[,4]; c5=ds[,5]; iris=cbind(c1,c2,c3,c4,c5) y=iris[,5] y1=which(y==1); y[y1] <- c("a"); y2=which(y==2); y[y2] <- c("b"); y3=which(y==3); y[y3] <- c("c"); iris=cbind(c1,c2,c3,c4,y) Thnks and best regards M. Azam [[alternative HTML version deleted]]
2010 Jun 03
1
increase memory
...0M It does not work. When I add the --max-mem-size=500M in Target field. There is error like as below: “The name "C:\Program Files\R\R-2.11.0\bin\Rgui.exe"--max-mem-size=500M specified in the Target box is not valid”   I use R2.11.0. in window vista with 3Gb RAM.   Have a nice day   Azam [[alternative HTML version deleted]]
2009 Apr 09
1
request: maximum depth reached problem
...s given below: iris.tr = tree(Species ~., data=training.data, method=c("recursive.partitioning"), split = c("gini"), control=tree.control(nobs = 150, minsize = 5, mincut = 2)) Any suggestion will be appreciated to handle the above problem. Thanks and best regards Muhammad Azam [[alternative HTML version deleted]]
2009 Apr 01
1
Request: Optimum value of cost complexity parameter "k" in "tree" package
...s = factor(Species, labels = letters[1:3])) miris <- tree(Species ~ ., data = iris, control=tree.control(nobs = 150, minsize = 5, mincut = 2)); iris.prun=prune.tree(miris, method=c("misclass"), best = NULL, k=0); iris.prun; summary(iris.prun); plot(iris.prun) best regards Muhammad Azam [[alternative HTML version deleted]]
2010 May 26
1
validation logistic regression
...4224  1 0   0.603881788227797  0 1   0.63633478460736   0 1 So, I have salichprediction between 0 to 1 and binary variable(observed values) 0 or 1. I want to compare these data together and I want to know is ok this model(logistic regression) for prediction or no?   please help me?   Thanks alot   Azam [[alternative HTML version deleted]]
2008 Jun 03
1
request: An array declarion problem
...n the loop r3[ i,]=rbind(r1[ i, ], r2[ i, ]) But there is an error message Error in r3[i, ] = rbind(r1[i, ], r2[i, ]) : number of items to replace is not a multiple of replacement length I am looking for some suggestion to solve the problem. Thanks and best regards Muhammad Azam Ph.D. Student Department of Medical Statistics, Informatics and Health Economics University of Innsbruck, Austria [[alternative HTML version deleted]]
2008 Jun 27
1
request: To access a particular list
...[1] 4 4 3 [1] 4 4 3 I want to access a particular list vr[[n-1]], but it gives an error "Error in print(vr[[n - 1]]) : attempt to select less than one element". How can i tackle this problem to access vr[[n-1]]. Please give some suitable suggestions. Thanks and best regards Muhammad Azam [[alternative HTML version deleted]]
2007 Nov 01
2
Some problem in opening connection with" .dat" extention file in matrix(scan) function of R 2.5
...tion: Warning message: cannot open file 'motives_pc.dat', reason 'No such file or directory' in: file(file, "r") \\ where # name of preferences data file is assigned as, inputFile <- "motives_pc.dat Thanking Regards SYED ADIL HUSSAIN (+923455205402) QUAID-E-AZAM UNIVERSITY ISLAMABAD, PAKISTAN. This is Virus Free Email Scanned by QAU's McAfee Virus Scanner ""THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sen...