search for: totalx

Displaying 3 results from an estimated 3 matches for "totalx".

Did you mean: total
2005 Nov 09
2
help with legacy R code
...ongrate <- wrongfit[[1]][2] good <- scan("rawdata.txt", list(x=0)) xmin = 0 newx = good$x xmean = mean(newx) xmax = max(newx)+0.15 goodhist <- hist(newx, br=seq(from=0,to=xmax,by=0.15), probability=T, col="lightyellow") initmean <- (min(newx)+max(newx))/2 totalx <- length(newx) wrongmeanshift <- wrongmean + 0.2 wrongper <- pgamma(wrongmeanshift, wrongshape, wrongrate) nfalseundermean <- which(abs(newx-wrongmeanshift)==min(abs(newx-wrongmeanshift))) initnfalse <- nfalseundermean / wrongper fitmean <- -1 fitsd <- 0 fitnfalse &lt...
2012 Jul 06
3
Tables extraction in R ?
Hi, I 'm a novice user of R statistics and my hands-on experience with it is minimal. I want to create a table for my MBA course assignment that looks like the ones that SPSS and MS Excel produces ,the data that the table has to include are the following : > table(agec) agec 1 2 3 749 160 32 > x=table(agec) > x agec 1 2 3 749 160 32 > > prop.table(x) agec
2012 Oct 07
1
two indirect effects of path analysis
Hello, This is Elaine. I am trying a path analysis using lavaan Package. There are three explanatory variables: X, Z, and M. The response variable is Y. A, b, and c have direct effects on Y. On the other hand, X and Z also have direct effects on M. In other words, X and Z have indirect effects on Y. I found the code example of lavaan package describes only one indirect effect as below. Please