search for: meany

Displaying 10 results from an estimated 10 matches for "meany".

Did you mean: many
2005 Oct 05
1
(no subject)
...atrix(c(1,0,0,1),2,2) Y=function(X1,X2,mu=m,V=v) { X=matrix(c(X1,X2),2,1) a=(1/((2*pi)*sqrt(det(V))))*exp((-0.5)*(t(X-mu)%*%solve(V)%*%(X-mu))) a[1] } x1=seq(-1,1) x2=x1 Z=outer(x1,x2,FUN="Y",mu=m,V=v) persp(x1,x2,Z) my code: BINORMAL<-function(varx=1,vary=1,covxy=0,meanx=0,meany=0) { #the following function plots the density of a bi variate normal distribution covXY<-matrix(c(varx,covxy,covxy,vary),2,2) A<-solve(covXY) #up<-max(meanx+4*varx^.5,meanx-4*varx^.5,meany+4*vary^.5,meany-4*vary^.5) #x <- seq(-up,up,length=50) #y <- x x <- seq(meanx-3*v...
2011 Aug 11
1
Splitting data
...r (i in 1:length(n)){ split <- length(data)/(n[i]) for (j in 1:(n[i]/2)){ x = data[(1 + (j-1)*(2*split)):(round(split) + (j-1)*(2*split))] dx = cbind(dx,x) y = data[((round(split)+1) + (j-1)*(2*split)):(2*j*split)] dy = cbind(dy,y) }} dx = dx[,2:dim(dx)[2]] dy = dy[,2:dim(dy)[2]] k=0 meanx=0 meany=0 sdx=0 sdy=0 nx=0 ny=0 for (k in 1:dim(dx)[2]) { meanx[k] = mean(unique(dx[,k])) meany[k] = mean(unique(dy[,k])) sdx[k] = sd(unique(dx[,k])) sdy[k] = sd(unique(dy[,k])) nx[k] = length(unique(dx[,k])) ny[k] = length(unique(dy[,k])) } t = (meanx-meany)/sqrt((sdx^2/nx) + (sdy^2/ny)) df = ((sdx^2/nx...
2006 Jul 06
1
a question about glm( )
...n = 100 # sample size beta.true = c(4,-6) #the true parameter #----------------------------------------- the given x x = rep(0,n) for(i in 1:n) {if (i<=80) x[i]=0.90-0.0025*i else x[i]=0.70-0.035*(i-80) } x = cbind(1,x) #----------------------------------------- to generate y meany = g(x%*%beta.true) y = rep(0,100) for(i in 1:n) { # simulate the data from a binomial distribution y[i] = rbinom(1,1,meany[i]) } #------------------------------------------ to do the Quasi-likelihood beta.old = glm (y~x[,2],family=binomial())$coef
2011 Aug 25
2
within-groups variance and between-groups variance
Hello, I have been looking for functions for calculating the within-groups variance and between-groups variance, for the case where you have several numerical variables describing samples from a number of groups. I didn't find such functions in R, so wrote my own versions myself (see below). I can calculate the within- and between-groups variance for the Sepal.length variable (iris[1]) in
2008 Jul 06
3
Lots of huge matrices, for-loops, speed
Hello, we have 80 text files with matrices. Each matrix represents a map (rows for latitude and columns for longitude), the 80 maps represent steps in time. In addition, we have a vector x of length 80. We would like to compute a regression between matrices (response through time) and x and create maps representing coefficients, r2 etc. Problem: the 80 matrices are of the size 4000 x 3500 and we
2011 Nov 22
3
Binned line plot
I have a scatter plot with 10000 points.? I would like to add a line that bins every 50 points and connects the average of each bin.? I'm looking for something similar to line type "m" in Stata. With this dataset of 10000 points, I would also like to bin the data and make boxplots at certain intervals, so that I have a set of boxplots to represent each bin.? I would also like the
2015 Feb 21
1
RStudio Calling C++ Visual Studio DLL
All, I'm a newbie to R and I am interested in seeing a simple example of calling a 3rd party Visual Studio generated DLL from RStudio. Does anyone have a simple example which also walks through the preliminary steps of setting up the INCLUDE path and the library path to either a DLL or LIB file ? I have tried to find an easy example, but thus far had no luck finding an example using Rcpp
2011 Sep 02
2
ISO question.
I am new to linux and am currently using Kubuntu 11.04 on a coby 10in netbook with no cd drive. I have ISO files of the diablo II install play cinematics and LOD discs. i was wondering if it was possible to mount and play off of those files. something similar to Daemon tools. i tried Acetone ISO but after i mounted nothing happend. I googled for a while and came to this site and read alot about
2005 Mar 12
2
Unable to create channel of type 'IAX2'
Hi all, I'm a newbie and I have a configuration problem with Asterisk. Seems that I'm not able to call an outbound number. I'm quite sure that it is a configuration problem, but I'm not able to find out where is the mistake, even reading several docs to www.voip-info.org. I do not have a good knowledge of Asterisk, I'm not very familiar with its configuration and I've a
2010 Nov 22
1
Using RInside in Visual Studio 8.0 VC++.NET Program
Hello, I am trying to use Rinside package in my VC++.Net program ( using Visual Studio 8.0 environment). I have downloaded Windows binary of RInside from the following link http://cran.r-project.org/web/packages/RInside/index.htm Version of RInside - 0.2.3 While compiling the program , i am getting about 69 error. Some of them are the folllowing ones. Please me in solving the following issue