cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-45067%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ETrend%20analysieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45067%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%3C%2FP%3E%3CP%3EIch%20vergleiche%20im%20Rahmen%20eines%20kleinen%20Projekts%20Google-Suchdaten%20zwischen%20drei%20Krebsarten%20und%20lasse%20die%20angeh%C3%A4ngte%20Datei%20aus%20Google-Trenddaten%20generieren.%20Wie%20erkenne%20ich%2C%20ob%20die%20Suchanfragen%20nach%20einer%20bestimmten%20Krebsart%20mit%20der%20Zeit%20zunehmen%3F%20Und%20wenn%20ja%2C%20ist%20der%20Trendunterschied%20signifikant%3F%20Kann%20ich%20als%20N%C3%A4chstes%20die%20Trends%20zwischen%20den%20Krebsarten%20C%2C%20P%20und%20L%20vergleichen%20(aus%20der%20beigef%C3%BCgten%20Datei)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-45081%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Trend%20analysieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45081%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDer%20folgende%20Code%20f%C3%BCgt%20eine%20numerische%20Datumsspalte%20hinzu%20(nimmt%20den%201.%20jedes%20Monats%20an)%20und%20erstellt%20mit%20Graph%20Builder%20ein%20Diagramm.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20data%20table(%22CancerIS_JMP%22)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20New%20Column(%20%22Month%20Dt%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22ddMonyyyy%22%2C%2010%20)%2C%0A%20%20Input%20Format(%20%22ddMonyyyy%22%20)%2C%0A%20%20Formula(%20Informat(%20%3AMonth%20%7C%7C%20%22-01%22%2C%20%22yyyy-mm-dd%22%20)%20)%0A)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Size(%20530%2C%20452%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3AMonth%20Dt%20)%2C%20Y(%20%3AIS%20)%2C%20Overlay(%20%3ACancer%20Type%20)%20)%2C%0A%20Elements(%20Line(%20X%2C%20Y%2C%20Legend(%2015%20)%20)%2C%20Points(%20X%2C%20Y%2C%20Legend(%2016%20)%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IS_graph.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22IS_graph.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22IS_graph.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F7769iA5831646641EC2FF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IS_graph.png%22%20alt%3D%22IS_graph.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESie%20k%C3%B6nnen%20eine%20visuelle%20Inspektion%20durchf%C3%BChren%2C%20um%20festzustellen%2C%20ob%20es%20Aufw%C3%A4rtstrends%20gibt.%20Wenn%20Sie%20etwas%20Quantitativeres%20ben%C3%B6tigen%2C%20k%C3%B6nnten%20Sie%20ein%20Modell%20anpassen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-45078%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Trend%20analysieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45078%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EDanke%20Tx.%20Dies%20ist%20keine%20Hausaufgabe.%20Ich%20bin%20Gastroenterologe%3CBR%20%2F%3E%20Kerl%20und%20leider%20viel%20%C3%A4lter%20als%20die%20Hausaufgabentage...%3CBR%20%2F%3E%3CBR%20%2F%3E%20Sicher.%20Bei%20der%20Analyse%20k%C3%B6nnen%20Sie%20die%20Spalte%20gerne%20in%20eine%20numerische%20Spalte%20%C3%A4ndern%3CBR%20%2F%3E%20erfordert.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-45077%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Trend%20analysieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45077%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDas%20erste%20Problem%2C%20das%20mir%20bei%20dieser%20Anfrage%20auff%C3%A4llt%2C%20ist%2C%20dass%20sie%20sehr%20wie%20eine%20Hausaufgabe%20aussieht.%20Bitte%20entschuldigen%20Sie%20meine%20Annahme%2C%20wenn%20dies%20nicht%20der%20Fall%20ist.%3C%2FP%3E%0A%3CP%3EDas%20zweite%20Problem%20besteht%20darin%2C%20dass%20Ihre%20Spalte%20%E2%80%9EMonat%3A%E2%80%9C%20als%20Zeichenspalte%20eingegeben%20wurde.%20F%C3%BCr%20jede%20Analyse%20im%20Zeitverlauf%20muss%20diese%20Spalte%20in%20eine%20numerische%20Spalte%20ge%C3%A4ndert%20werden.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
sajanjiv
Level I

Analyze trend

Hi 

I am comparing Google search data between 3 cancers as part of a small project, and have the attached file generated from Google trends data. How do I see if the searches for a particular cancer are going up with time?, and if so is the difference in trend significant? Next, can I compare trends between cancers C, P and L (from the attached file)?

3 REPLIES 3
txnelson
Super User

Re: Analyze trend

The first issue I see with this request is that it looks very much like a homework assignment.  Please excuse my assumption if it is not.

The second issue, is that your "Month: column has been input as a character column.  For any analysis across time this column needs to be changed to being numeric.

 

Jim
sajanjiv
Level I

Re: Analyze trend

Thanks Tx. This is not a homework assignment. I am a Gastroenterology
fellow and way older than homework days unfortunately...

Sure. Please feel free to change the column to numeric if the analysis
requires.
pmroz
Super User

Re: Analyze trend

The code below adds a numeric date column (assumes 1st of every month) and creates a graph using Graph Builder.

dt = data table("CancerIS_JMP");

dt << New Column( "Month Dt",
		Numeric,
		"Continuous",
		Format( "ddMonyyyy", 10 ),
		Input Format( "ddMonyyyy" ),
		Formula( Informat( :Month || "-01", "yyyy-mm-dd" ) )
);

gb = dt << Graph Builder(
	Size( 530, 452 ),
	Show Control Panel( 0 ),
	Variables( X( :Month Dt ), Y( :IS ), Overlay( :Cancer Type ) ),
	Elements( Line( X, Y, Legend( 15 ) ), Points( X, Y, Legend( 16 ) ) )
);

IS_graph.png

You can do a visual inspection to see there are any upward trends.  If you need something more quantitative you could fit a model.

Recommended Articles