I'm using R demography package to study Mauritian population. However, I'm having some problem with pop.sim function as I can't figure out how the mid year population must be entered? Can anyone give me an example please?
The help file is rather brief (sorry about that). The first year population should be part of a demogdata object. The example at the end of the help page on pop.sim should help. It requires the addb package which is available from http://robjhyndman.com/software/addb/.
Related
Can someone help me find a package to calculate the FIES score ? I don't seem to find any anywhere.
If there is no package, may someone guide me through the proper equation of the score so I can create a conforming function ?
Thanks a lot.
I managed to find the package. It's called RM.weights and it uses the Rasch model to create this score. For more details check the link below :
https://www.fao.org/in-action/voices-of-the-hungry/analyse-data/en/
You can also check this link provided by the FAO organisation that includes detailed instructions of how to create this score using the FIES score app designed by the FAO
https://www.fao.org/3/ca9318en/ca9318en.pdf
The crosstable package give me exactly what I need to do some exploratory work in a data set composed of answers to a survey. But I need to weight the crosstabulation to get a representative results of the population I'm studying. Any ideas how I could use weights with this package?
So far I have used the "survey" package to do that, but it's lacking presentation tool to get publication ready tables.
Thanks.
I'm the dev of the crosstable package and it is unfortunately not supporting weights yet.
I would love to implement this as a feature one day, so you should definitely open a Feature Request on GitHub.
As I've never had to do a weighted description myself, please add a simplified version of your use case so that I can make something useful to everyone.
I need help plotting the log of the number of passengers for each month and, from this plot, proposing a model for the logdata along the lines of regression. I'm new to R so this is a little troublesome for me. Any help or tips will be greatly appreciated. Thanks in advance.
Also, R knows this dataset so using data("AirPassengers") will retrieve the data set.
You could start by following many wonderful examples by Rob Hyndman
My data has Accounts, Month and the Amount with respect to the Accounts and Month. I need to do a forecast of Amount for the next 3 months for each Account.
Can someone please suggest how this can be achieved.?
Try using sweep package that can be nicely used with tidyverse, see the vignette with the relevant example here.
For the future, though, make sure you provide a reproducible (dummy) example of your data with the exact description what you're trying to achieve.
I am trying to create a Control charts with rolling averages in R that closely matches something like this. I am relatively new to R, and my grasp of all the available pages is not great yet.
controlchart with moving average i'd like to recreate
Can someone help me figure this out? Maybe point me to the right packages I should install and study? Any help is appreciated.
I was looking for the answer to creating this type of chart myself.
One solution is the qicharts package. Instead of calling the changes rolling averages or stages (the term Minitab uses), they call the changes breaks.