Displaying 20 results from an estimated 1100 matches similar to: "Population simulation."
2004 Jul 01
1
Factors.
Hello,
I'm new with R. I need some help; I have a matrix of data to wich i want to
apply the function dudi.acm to perform multiple correspondence analysis.
However to use it all variables must be factors, so how can i turn each column
of the matrix into a factor? I've tried as.factor. It works isolated for each
column, but when I form the matrix of all factors it doesnt work.
Please
2004 Nov 17
1
Multi-way tables
Hello,
can someone tell me how to extract a partial table from a multiway table?
Something else: I tried to do basic operations on cross-tables, like
subtracting two cross tables with same dimensions and i was unable to do so.
Is there another way?
thanks!
__________________________________________________________
2004 Sep 11
1
help in building a function
hello,
i'm new in writting functions in R. I read the R-help manuals but still
couldn't get it right.
The problem is:
I have data on 16 categorical variables for 335 individuals. the data are
lines for individuals and columns for variables.
I want to calculate the correlation between two variables using a formula
given by Agresti for ordinal categorical variables.
I have to calcule the
2004 Oct 20
2
Odd behaviour with scale()
Moi!
A student here has been getting a bit irritated with some side effects
of scale() (OS is Windows XP, the behaviour occurs in R 2.0.0, but not
1.7.1). The problem is that she scales a variable in a data frame, then
does a regression, and tries to get some predictions for some new data.
However, at this point she gets an error (see the example below). This
seems to be because the
2007 Nov 08
3
Testing Normal Distributions
Hi,
I would like to know if there is an algorithm in R for testing if a data set as a normal destribution.
Thank you for your time,
Pedro Marques
2004 Dec 19
1
Different graph type can coexisti??
Please consider a data frame
A B C D
1 4 5 0
2 3 2 75
3 4 1 84
4 5 1 90
5 3 0 100
Is there a way to plot column B and C as barplot *and* D as line on the same
graph??
R-2.0.1 powered by Mandrake 10.1
-------------------------------------------------------------------------------------------------------------------------
Landini dr. Massimiliano
Tel. mob. (+39) 347 140 11 94
Tel./Fax. (+39)
2009 Apr 13
6
FTS Plugin design
Hi all,
Currently I am developing some changes on the solr plugin. I want this
plugin indexing also the attachment's content. I have already started to
look on plugin's source but I am having some problems understanding how it
works.
I didn't understood yet what is the plugin's design and how the plugins are
called from the core system and I was wondering if anyone could help me
2017 Sep 20
4
arguments imply differing number of rows
Hi Team,
I using the syntax as:
data.df<- data.frame(
city= c(rep(c("Delhi", "Bangalore","Chandigarh"),each=5)),
population= c(4000:6000,3500:4300,3000:3200)
)
But i am getting the error as arguments imply differing number of rows: 15,
3003.
Tried searching google but could not understand & find the solution.
Thanks, Shivi
[[alternative HTML version
2004 Oct 31
2
(no subject)
Dear all,
I have several questions regarding fisher.test() in
R, and I'd highly appreciate any help with it.
I have a group of observations, each having people's
income, and an indicator of whether selected in or out
a program. I want to test the difference between
income of people who are in and out.
Because the distribution is far from normal, I decide
to use the fisher's exact
2004 Oct 31
2
(no subject)
Dear all,
I have several questions regarding fisher.test() in
R, and I'd highly appreciate any help with it.
I have a group of observations, each having people's
income, and an indicator of whether selected in or out
a program. I want to test the difference between
income of people who are in and out.
Because the distribution is far from normal, I decide
to use the fisher's exact
2006 Aug 03
1
how to use the EV AND condEV from BMA's results?
Dear friends,
In R, the help of "bic.glm" tells the difference between postmean(the
posterior mean of each coefficient from model averaging) and
condpostmean(the posterior mean of each coefficient conditional on the
variable being included in the model), But it's still unclear about the
results explanations, and the artile of Rnews in 2005 on BMA still don't
give more detail on
2007 Dec 09
1
Problems working with large matrix (using package R.huge)
Hi all,
Since I was having several problems trying to work with a large matrix I started to use the package R.huge but I'm having the following problem
> x<-FileByteMatrix("covtype.data",nrow=581012,ncol=55)
Error: cannot allocate vector of size 770.8 Mb
In addition: Warning messages:
1: Reached total allocation of 447Mb: see help(memory.size) in: readChar(con = con, nchar =
2007 Dec 15
2
Using boxplot in a daily time series
Hi all,
I'm trying to plot my daily time series, with 3650 observations( 10 years), with boxplot but I want 12 boxes, one for each month, can anyone help me doing that.
Best regards
2017 Jun 29
3
Help : glm p-values for a factor predictor
Hello,
i am a newby on R and i am trying to make a backward selection on a
binomial-logit glm on a large dataset (69000 lines for 145 predictors).
After 3 days working, the stepAIC function did not terminate. I do not
know if that is normal but i would like to try computing a "homemade"
backward with a repeated glm ; at each step, the predictor with the max
pvalue would be
2017 Sep 20
0
arguments imply differing number of rows
4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want
population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5),
seq(3000, 3200, length=5))
Bob
On 20 September 2017 at 17:07, Shivi Bhatia <shivipmp82 at gmail.com> wrote:
> Hi Team,
>
> I using the syntax as:
>
> data.df<- data.frame(
> city= c(rep(c("Delhi",
2009 Nov 12
1
Substituting vectors into a legend
I have a simple (!) problem. What I want to do is to create a legend with
Greek letters, and substituting numbers into the legend. Like this:
mu=1:3
Mean=rep(mu, each=20)
plot(runif(60), rnorm(60,Mean,0.1), pch=Mean) # create a plot
legend(0.6,1.7, paste("mu =", 1:3), pch=mu)
but with a Greek letter mu.
I think the solution has something to do with substitute() possibly along
with
2006 Jun 29
2
zero.print in print.table after adding margins
The function addmargins() adds margins to a table, but returns a matrix.
But even after converted to a table the print.zero="." option of
print.table() does not work:
> x <- sample( 1:7, 20, replace=T )
> y <- sample( 1:7, 20, replace=T )
> tt <- table( x, y )
> tx <- as.table( addmargins( table( x, y ) ) )
> print( tt, zero.print="." )
y
x 1 2
2006 Jun 29
2
zero.print in print.table after adding margins
The function addmargins() adds margins to a table, but returns a matrix.
But even after converted to a table the print.zero="." option of
print.table() does not work:
> x <- sample( 1:7, 20, replace=T )
> y <- sample( 1:7, 20, replace=T )
> tt <- table( x, y )
> tx <- as.table( addmargins( table( x, y ) ) )
> print( tt, zero.print="." )
y
x 1 2
2005 Jul 28
3
Tyan Thunder K8SE S2892 Report
I had my eye on the Tyan dual-Opteron mobos for awhile. I tried to find
a posting *anywhere* sharing experiences with these boards under Linux.
No such luck. So placing myself under the heading "Where Angles Fear to
Tread," I went ahead and built a system anyway. Here's what I've learned.
The specs:
Tyan Thunder K8SE S2892, BIOS 1.01
2x Opteron 270, 2Ghz Dual-Core, retail
2004 Mar 19
2
Odd behaviour of step (and stepAIC)?
I can only assume I'm betraying my ignorance here, but this is not what
I would expect.
I'm getting the following from a stepwise selection (with both step and
stepAIC):
> step(lm(sqrt(Grids)~ SE + Edge + NH), scope=~ (Edge + SE + NH)^2)
Start: AIC= 593.56
sqrt(Grids) ~ SE + Edge + NH
Df Sum of Sq RSS AIC
<none> 2147.0 593.6
+ Edge:NH 1