similar to: R simulations

Displaying 20 results from an estimated 8000 matches similar to: "R simulations"

2011 Aug 23
2
How can I do these simulations with R code
1) The Pareto P(alfa) distribution is defined by its density f(x|alfa) =alfa*X^(-alfa-1) over (1 to infinity). Show that it can be generated as the -1/alfa power of a uniforme variate. Plot the histogram and the density. 2) The Poisson distribution P(lambda) is connected to the exponential distribution through the Poisson process in that it can be simulated by generating exponential random
2010 Dec 16
5
Please help with one problem
It is interesting to graph the distribution of the standardized average as n increases. Do this when the Xi are uniform on [0; 1]. Look at the histogram when n is 1, 5, 10 and 25. Do you see the normal curve taking shape? (A rule of thumb is that if the Xi are not too skewed, then n > 25 should make the average approximately normal. You might want > f=function(n,a=0,b=1) { mu=(b+a)/2
2011 Oct 14
1
Wilcoxon and the use of simulation
Dear forum users, It's 3:35am and I am swamped with statistics homework lol I'm terrible with R and this time I have no idea what the prof wants. Here is the question: Consider the (two-??sample) Wilcoxon rank statistic T = ?rank(Xi). For n1=106 and n2=192, determine by simulation the ?=.05 critical point for testing H0: ?=0, H1:?<0. We can do this as follows: For m=10000 (no wimpy
2009 Feb 16
5
Alternate to for-loop
Hi, I am trying to create a vector of length 10 (say), wherein each element will be average of random sample of size 100, from a distribution, say Normal. Can anyone please tell me without creating a "for" loop, how I can do that? Regards, -- View this message in context: http://www.nabble.com/Alternate-to-for-loop-tp22035954p22035954.html Sent from the R help mailing list archive at
2015 Apr 06
6
Member server - winbind unable to resolve users/groups
On 06/04/15 12:37, buhorojo wrote: > On 05/04/15 19:41, Rowland Penny wrote: >> On 05/04/15 16:11, buhorojo wrote: >>> On 05/04/15 17:03, Reindl Harald wrote: >>>> >>>> >>>> Am 05.04.2015 um 16:55 schrieb buhorojo: >>>>> We don't want best anything >>>> >>>> sad enough >>>>
2015 Apr 05
2
Member server - winbind unable to resolve users/groups
On 05/04/15 16:11, buhorojo wrote: > On 05/04/15 17:03, Reindl Harald wrote: >> >> >> Am 05.04.2015 um 16:55 schrieb buhorojo: >>> We don't want best anything >> >> sad enough >> >>> We want what we have to work >> >> so do what you want - who cares >> >>> Linux: we configure it as we wish >> >> why
2009 Dec 26
5
Is SEM package of R suitable for sem analysis
Dears, I'm a college student and In doing my statistics homework. I use R with SEM package as my tool for sem analysis, but my teacher told me AMOS is more suitable for such analysis. Could someone help tell me whether it is true that some commercial software is better accepted in academic fields? Sorry if I should not post such topics here. -- Best Regards, Reeyarn T. Lee Accounting
2008 Oct 14
4
problem using R
Hi , I am having serious trouble doing this homework. I am using R for doing the homework. I am having the following specific problem: a) when I input the data using the command > Wbdc <-read.table("wdbc.txt")? I do not see the data. b) When I want to run histogram using command > hist(area) I get an error message, Error in hist(area) : object "area" not found. ? I am
2015 Apr 05
3
Member server - winbind unable to resolve users/groups
Am 05.04.2015 um 16:55 schrieb buhorojo: > We don't want best anything sad enough > We want what we have to work so do what you want - who cares > Linux: we configure it as we wish why don't you do then? > Not as someone else dictates well, do what you want but why do you discuss on public mailing lists if you only want to hear the same as you say? > You're
2005 Jul 09
2
A shared space between students and their teacher !!!
Hi all, Last week I implemented samba a sa file server and domain controller for more than 150 computers (Win 2000 and XP). Everything is working just fine. However, computer science faculty wanted a share for each course in which students can upload their homework once done and teacher download them for correction. Yet, students can have the right to write on that share but not delete the work
2011 Mar 22
3
Urgent query about R!
Hi there, I am currently working on a R programming project and got stuck. I am supposed to generate a set of possibilities of 1296 different combinations of 4 numbers, ie. 1111, 1234, 2361, (only contain 1 to 6) in a matrix form here is what I got which has not been working as it keeps coming out with the same number on the row.. The code: gl1<- gl(1296,1,length=1296, labels=1:1296,
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, Esta pregunta la hice en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808>pero nadie pudo contestarla. 1. Quiero generar N escuelas, con G grados y C divisiones. 2. Quiero asignar cada uno de T maestros a 2 divisiones en un grado y escuela Si tengo C=4 divisiones, puedo lograr lo que quiero con
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, 0. La falta de 'elegancia' hace que sea mas dificil hacer cambios al codigo. Por ejemplo cambiar n.classrooms <- 4 a n.classrooms <- 20 1. Cuando tengo solo 4 puedo hacer esto: schoolGrade$A <- Teachers$Teacher.ID[1:cuttoff1] schoolGrade$B <- Teachers$Teacher.ID[1:cuttoff1] schoolGrade$C <- Teachers$Teacher.ID[(cuttoff1+1):n.teachers] schoolGrade$D <-
2015 Jul 13
2
Crear datos aleatorios con restriciones
Gracias Carlos, Tu codigo es un gran paso en el sentido correcto pero no produce exactamente lo que estoy buscando. Mi "solucion" en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808> produce un data frame `schoolGrade` con 240 observaciones y 7 variables. Mi objetivo es poder generar un data
2015 Jul 13
2
Crear datos aleatorios con restriciones
Perdon por no se lo suficientemente claro :( Tu codigo produce `validPairs` que tiene 7 variables y 360 observaciones. Donde > validPairs[1,] V1 V2 V3 V4 V5 V6 valid 60 e1 g1 c1 e1 g1 c2 Valid indica que un maestro tiene asignado c1 y c2 en la escuela e1 y el grado g1. Correcto? Si es asi, esto es casi lo que queira producir y creo que puedo llegar a donde quiero usando tu codigo de base.
2006 Jan 23
3
create and update with has_many :through
I''m using Edge Rails and the new has_many :through in my code. What I''m trying to do is modify my create and update code to use the new relationships. I''m using a table called course_teachers for the joins. Here is what I have so far: def create @course = Course.new(params[:course]) @teacher = Teacher.find(params[:primary_teacher]) @course.teachers =
2010 Oct 12
1
(no subject)
To Whom It may Concern, I am *very* new to R so no answer can be too explicit or step-by-step. I have to plot make a Normal quantile graph for a data set that looks like this:density5.55.614.885.075.265.555.365.295.585.655.575.535.625.295.445.345.795.15.275.395.425.475.635.345.465.35.755.685.85 I begin with > data="name of file.txt" I know I am supposed to begin with >qqnorm but I
2006 Aug 03
12
More than one has_many :through association between the same 2 models
I wonder if you can have more than one has_many :through association between 2 models. For example... I have a model Teacher and a model Class Now, 1 Teacher works in many Classes, right?. So I need a join model like class Work < ActiveRecord::Base belongs_to :teacher belongs_to :class end But I also would like to know if a teacher CAN teach a class before I
2006 Aug 24
1
Strange permissions problems
I had this problem some last year and never got it figured out. Now it is bugging me. It seems that sometimes when a student writes his/her file to a directory, it will not keep the correct group. It puts his/her main group as the group owner and that fouls things up. Here is what I have. Unix Permissions /school 3777 admin.teacher /school/bhs 3777 admin.teacher /school/bhs/reese
2007 Dec 04
5
when to save, session reflect saves?
I am trying to clean up unnecessary lines (even as I hack my way forward adding more garbage) I have two questions on lines I have trying to keep the database and session info reflecting changes: def associate_pupil_to_teacher @teacher = session[:teacher] @pupil = Pupil.find(params[:id]) @teacher.pupils << @pupil @teacher.save #Q1 session[:teacher] = @teacher #Q2 end #Q1 do i