Displaying 3 results from an estimated 3 matches for "certiain".
Did you mean:
certain
2007 May 01
2
Simulation using parts of density function
Hi
My simulation with the followin R code works perfectly:
sim <- replicate(999, sum(exp(rgamma(rpois(1,2000), scale = 0.5, shape = 12))))
But now I do not want to have values in object "sim" exceeding 5'000'000, that means that I am just using the beginning of densitiy function gamma x < 15.4. Is there a possibility to modify my code in an easy way?
Thanks for any help!
2007 May 03
0
unscrible pls
...nning of
> > densitiy function gamma x < 15.4. Is there a possibility to
> > modify my code in an easy way?
> >
> > Thanks for any help!
> >
> > Regards, Brigitte
>
> A somewhat extreme problem!
>
> The easiest way to modify the code is as below -- certiainly easier
> than writing a special function to draw random samples from the
> truncated gamma distribution.
>
> A bit of experimentation shows that, from your code above, about
> 10% of the results are <= 5000000. So:
>
> sim<-NULL
> remain <- 999
> while(remain&g...
2003 Dec 01
0
No subject
...HARE\' -c \"";
$command=$command . "ls $tf; put $tf; get $tf $tfback; ls $tf";
$command=$command . "\" -Uusername";
#CAUTION: wRITE COMMAND BEFORE ACQUIRING PASSWORD
writelog($command);
$command=$command . "%$PASSWORD";
my($line);
#CAUTION: CERTIAIN OS'S SHOW THE PASSOWRD IN PS -AX
my(@lines)='$command';
foreach $line (@lines)
{
chomp($line);
&writelog($line);
}
print glob $tfback;
my($scratch)='ls -l --full-time $tfback';
writelog($scratch);
$scratch=`date`;
writelog("Time is $scratch");
}
sub d...