similar to: Moving average in R

Displaying 20 results from an estimated 800 matches similar to: "Moving average in R"

2010 Aug 12
1
plot.circular
Dear all, I am using plot.circular(x, stack=TRUE) to plot a "histogram" from a list of angle. I would also like to draw a line from the origin at the angle of the mean (mean.circular), preferably with the resultant's length (rho.circular) as length. How do I achieve this on the circular plot, please? Thanks a lot, Tim -- -- Tim Gruene Institut fuer anorganische Chemie
2010 Jun 18
2
double integral
Sir, I want to calculate double integral in R. Is there any function to do this? Regards, Suman Dhara [[alternative HTML version deleted]]
2010 May 31
1
getting the column name of a data frame
Sir, I want to store the column name of a data frame as a vector and use the vector to remove a column of the data frame ,if required. Thanks, Suman Dhara [[alternative HTML version deleted]]
2010 Jun 06
2
fitting multinomial logistic regression
Sir, I want to fit a multinomial logistic regression in R.I think mlogit() is the function for doing this. mlogit () is in packege globaltest.But, I can not install this package. I use the following: install.packages("globaltest") Can you help me? Regards, Suman Dhara [[alternative HTML version deleted]]
2010 Jun 04
1
parttioning a matrix corresponding to different levels of y
Sir, I have a problem regarding partitioning a matrix.I state my problem as follows: I have a y vector of length say 1000.Variable y has 4 levels say 0,1,2.Corresponding to each y(response), I have a x-vector(explanatory) as a row of X matrix.Now, I want to partition the X matrix into 3 submatrices say x1,x2,x3 corresponding to each level of y.Is there any function to do this in R or how can I
2010 Aug 12
1
reading fixed width format data with 2 types of lines
Hi, I know how to read fixed width format data with read.fwf, but suddenly I need to read in a large number of old fwf files with 2 types of lines. Lines that begin with "3" in first column carry one set of variables, and lines that begin with "4" carry another set, like this: ? 3A00206546L070049016090045 99 1015002 001001008010004002004007003 001
2010 Jun 10
1
To give column names of a data-frame
Sir, I want to export the results of R in a data frame. So I want to give rownames,columnnames & title to the data-frame.I have applied the following: data.frame(matrix(c(...),nrow=,ncol=),row.names=c("a","b"),col.names=c("c","d"),title="aaa") But, it does not work. Can you help me? Regards, Suman Dhara [[alternative HTML version
2010 Jun 05
1
Prediction in discriminant analysis
Sir, I am working with multiclass discriminant analysis.(say response variable has 3classes).In R, using lda(), I get 2 sets of coefficients for the discriminant function.Now, I want to put a new x-vector(vector of independent variables) and want to check it corresponds to which class of y.Is there any formula for doing this? or how can I do this? Regards, Suman Dhara [[alternative HTML
2010 Jun 16
1
generating samples from multivariate distributions
Sir, I want to draw random from any multivariate disrtibution. Is there any function in R to do this? Regards, Suman Dhara [[alternative HTML version deleted]]
2010 Aug 07
3
How to start R
Hi folks, Just finished installing R on Ubuntu 10.04, running on a VM, download following packages on repo; r-base littler r-cran-plotrix r-cran-qtl r-cran-rggobi But I could not get R started. r is on /usr/bin/r On console evoking it just hanging there. Any additional packages I need to install? Thanks B.R.
2010 Aug 19
1
texi2dvi: option "clean" also deletes the generated pdf file
Dear expeRts, below are two examples of using texi2dvi. The problem becomes clear from the second example: on cleaning, texi2dvi also deletes the generated .pdf file. Is there a solution? Cheers, Marius ## Example 1: texi2dvi cleans fine, without deleting the generated .pdf require(tools) sink(file="myLaTeXFile1.tex") cat("\\documentclass{article}\n")
2010 Jun 17
1
simulating data from a multivariate dist
Sir, I am working on fitting distribution on multivariate financial data and then simulate observations from that fitted distribution. I use stepAIC.ghyp() function of 'ghyp' library which select the best fitted distribution from generalized hyperbolic distribution class on the given dataset. data(indices) # Multivariate case: aic.mv <- stepAIC.ghyp(indices, dist =
2010 Aug 23
3
DNA sequence Fst
Hi, I want to analyse DNA sequence data (mtDNA) in R as in calculate Fst, Heterozygosity and such summary statistics. Package Adagenet converts the DNA sequence into retaining only retaining the polymorphic sites and then calcuates Fst.. but is there any other way to do this? I mean analyse the DNA sequence as it is.. and calculate the statistics? Thanks! [[alternative HTML version deleted]]
2010 Jun 10
2
drawing curve
Sir, I have a problem regarding drawing curve.I pose the problem as follows: suppose I have two vectors: x<-c(1:6) y<-c(.01,.09,.08,.03,.001,.02) plot(x,y) It gives me the plotted points.But I want to draw a smooth curve passing througt these points. How can I do this? Thanks & Regards, Suman Dhara [[alternative HTML version deleted]]
2010 Jun 25
2
installing multicore package
Sir, I want to apply mclapply() function for my analysis. So, I have to install multicore package. But I can not install the package. >install.packages("multicore") It gives that package multicore is not available. Can you help me? Regards, Suman Dhara [[alternative HTML version deleted]]
2010 May 31
1
Removing columns from data frame referenced by column index
Can you suggest me any way to remove a column of a data frame by the column number,not by the column name. Thanks, Suman Dhara [[alternative HTML version deleted]]
2010 Jun 16
1
Exporting multiple plots
Sir, I want to export 10, say graphs using 'for' loop. What will be the command and format for exporting multiple plots. Regards, Suman Dhara [[alternative HTML version deleted]]
2010 Jun 23
1
calculating using user provided function
Sir, I'm writing a program in R that requires the user to provide a funtion. On the basis of the user provided function the program will proceed further and give results. Is there any technique in R that allow a user to give his own function and on the basis of that function the program will work. Regards, Suman Dhara [[alternative HTML version deleted]]
2010 Aug 20
7
Latex no where to be seen
I'm experimenting using R as a report writer. I'm told LaTex is the destination for my quest. But ?latex() gives me an error. The package manager does not have it. The package installer can't find it. Where is it? It amazes me that there's not a built in "report" function that can produce the same kinds of reports that every report writer and data analysis software in
2010 Jul 28
1
kde on Torus
Hello, I have 2D-data on a torus, i.e. they are scattered within [0:2pi) and are supposed to be periodic with period 2pi. Is there a way in R for a kernel density estimation for such data? I found this article http://www.dmqte.unich.it/personal/dimarzio/density46.pdf but a) I don't fully understand the article (my knowledge in statistics is poor) b) I did not understand which Eq.